Здравко Legendary | Level 20

Comments

  • Waww🤦🤫... that's something really stupid from my side. But the issue is still there. 🤯 Just the response changes to "Conflict" with body: {"error_summary": "not_found/", "error": {".tag": "not_found"}} Despite the values are correct. I just checked all them once again. 🤔 Using the same values I can download a thumbnail of…
  • @"Greg-DB" wrote:... it looks like that failure is due to an invalid app key and/or secret value, so please double check your values. ... Ok, Might be, but there is no reliable way I check it. The following is the way I use to get authentication values. I repeated the test with the same result. curl -s -S -o ~/dump.txt -D…
  • @"Greg-DB" wrote:... @"Здравко"You mentioned you're getting an "Internal Server Error" on some piece of functionality. Can you share the details so we can look into it? Thanks in advance! Hi @"Greg-DB", Sure, I can. In 2/files/get_thumbnail_v2 description can be seen that connection to this end point can be authenticated…
  • @"FoxyLoxy" wrote: ...Is there a way to directly access the thumbnail that Dropbox generates for each file via http? If not, is there a suggested/recommended approach to convert PDF to an image format and use that for a thumbnail? ... Hi @"FoxyLoxy", Supported way to get a thumbnail image from wide range of file types is…
  • You are not mandated to use curl exactly! This tool is convenient to demonstrate many types of query and useful on shell scripting. It's very useful for communication debugging. On "regular" programing, more "typical" languages are usually in use. As I said above few SDK for such languages exist fully supported (some more…
  • @"AlecF" wrote:... Which brings me to another question, what is the format of the timestamp string ? ... Take a look on 2/sharing/create_shared_link_with_settings (in parameters section): ... settings SharedLinkSettings? The requested settings for the newly created shared link. This field is optional.SharedLinkSettings…
  • @"studio_jhh" wrote:... Especially since the bad file check website isn't working any longer. ... Take in mind when you check such thing online, only possible issues related to downloading files would be spotted on, not in opposite direction (upload, like in your case). In your case "bad file check website" wouldn't have…
  • Hi @"infofeedback", Take a look on 2/files/create_folder_v2, 2/files/create_folder_batch, and 2/files/create_folder_batch/check for folder creation. Also take a look on 2/sharing/create_shared_link_with_settings and 2/files/get_temporary_link for different link types creation, providing access to the content. There are end…
  • Hi @"studio_jhh", As in many other cases, Dropbox just puts some common message for wide space of possible issues. 🙂 In you particular case the issue isn't wrong symbol as such, but blank symbol at the end (the same would be if it was ta the beginning). Take a look on the folder name Swimming Pool. Is it "Swimming Pool" or…
  • Hi @"pii_dee", Using rules pointed in the solution above, you can list folder(s) you want and receive files list there together with all accessible files attributes. Now you can reorder and filter all entries in received list according rules you want. Finally go further and download selected subset of the files list…
  • Hi @"AlecF", To find the function you are looking for, take a look here. 😉 Hope this helps.
  • You can use WebRequest class from the core. Example for POST request can be seen here. You should format your request according the Dropbox documentation referred above. Hope this helps.
  • Hi @"DavidThielen", Using some SDK (including .NET) is for convenience only. You are not obligated to use it! Only mandatory thing to use is API. It's the only way to "talk" to Dropbox server. You can do that using some SDK or directly drive web transactions to corresponding access point by yourself. The choice is yours.…
  • @"justindaw" wrote:... You can see that in the file dropbox returns it is appending a few bytes at the front. ... 🙂 Not only at the front, for sure! There are 2 bytes at the end too, at least. May be some more inside. 34 30 30 30 0d 0a 🡓 🡓 🡓 🡓 🡓 🡓 4 0 0 0 CR LF The above means you have a chunk of data. Chunk size is 4000…
  • Hi @"af11", Are you aware of 'annotations' in Python? 🧐 I suppose you got confused on following point in code: @app.route('/welcome')def welcome(): return render_template('welcome.html', redirect_url=get_url('oauth_callback'), webhook_url=get_url('webhook'), home_url=get_url('index'), app_key=APP_KEY) What is the leading…
  • @"Greg-DB" wrote:... In this HTTP 2 sample, the final 200 does have "Content-Length". Just one addition to avoid confusion: There is temporary rollback, that's why "Content-Length" just appear without workaround! 😜 That gonna change at March beginning. 😉 @"mbvistaprint", you can see in the @"Greg-DB"'s post for HTTP/1.1…
  • Hi @"saeeda", As your code is not fully represented, may be something lefts hidden. 🤔 @"saeeda" wrote:... httpService.get('/dropbox/listfolders', {"cursor": cursor})// this endpoint from our server side when the cursor !== '' then call continue ... ... "then call continue" - Are you sure? It looks like it's not and you are…
  • Hi @"mbvistaprint", From the description you gave to here, seems your environment is using HTTP protocol version less than 2. Dropbox server "keeps strictly" the "chunked" encoding in such a case and it's difficult to turn it off. The mentioned by me above works for HTTP v2, but not in other (in particular not in v1.1) and…
  • Hmm... In such a case I'm up to here. In my test when transfer encoding is off (i.e. set to Identity) "content-length" comes up: x-content-security-policy: sandbox x-content-type-options: nosniff x-robots-tag: noindex, nofollow, noimageindex x-server-response-time: 46 x-webkit-csp: sandbox content-type: application/json…
  • @"Greg-DB" wrote:... I just tried a HEAD request on your sample link with "dl=1" sending the same request headers you specified for that one and I do get the expected redirects and successful response (that is, a 301, then a 302, then a 200). Hmm... 🤔 And what about the "content-length" with "the same request headers"?…
  • Hi @"mbvistaprint", Hah... 😁 One more bug... 🤷 It's definitely not the same like the one I linked to before. Here as far as I can see Dropbox server gets confused from Accept-Encoding header. You haven't posted you query, but most probably there your web client pushed all supported encodings. What seems confusing to…
  • Hi @"mbvistaprint", To see the headers received, you can dump "Headers" property of your "response", if you want. 😉
  • Short lived token is valid for 4 hours only! If that works for you... Ok. I don't know how you are using API, but most probably you can continue in the same way about the token. 😉
  • Hi @"Jeff B.63", The best way to check commands format is API explorer, I think. Just select the access point you want to explore and fill the proper parameters. Click "show code" and select "HTTP request". That's it. By the way you can use "list_folder/continue" after "list_folder" to see entire folder content in case of…
  • Hi @"saeeda", Hmm... 🤔 Are you updating your cursor as returned by each "file/list_folder/continue" call or are you using the one received from "file/list_folder" only? 😉 Hope this gives idea.
  • Hi @"mbvistaprint", Let's hope the bug will be fixed soon. I believe staff working on it will follow up on the forum thread referred above on update. Good luck!.. to all of us. 😉
  • Hi @"Musicstate", The issue you are experiencing isn't related to any access or permission troubles. It's just a standard error message for everything (with or without real permission issues). The issue is definitely related to the path you selected for your Dropbox folder. It may be due to change/move in this path, for…
  • @"Greg-DB" wrote:... for files, but not folders. Created time is not available for either. ... Hmm... 🤔 Not entirely true! It seems Dropbox (as system) keeps folders creation moment internally (I have no idea why). It's another thing that this creation time is not accessible using Dropbox API for the folders. 😉 Actually…
  • It's meaningless if you are using direct API calls or some SDK. You should be able access the same features anyhow (to the discussed context, at least). @"Diegovsky" wrote:... Regarding timestamps of folders, I just selected this folder and it shows me this info ... 😁Don't mess you local folder properties with those…
  • @"Diegovsky" wrote:Watching for changes isn't feasible if the user turns off their computer or loses connectivity. ... Also, maintaining a live connection with dropbox would kinda suck since it would keep constantly polling for changes (which is expensive) and will consume a lot of band/API requests. ... Is there a better…