cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Are you an educator? Well we want to hear from you, so check out some tools we think might help you out here!

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Call get_preview http method returning 404 error

Call get_preview http method returning 404 error

Hananel C.
New member | Level 2

I had created the file 'word.docs' under the root folder.

Request the api v2 method get_preview with the path for this file return 400 error.

request details :

headers :

          "Dropbox-API-Arg"  : {"path": "/word.docs"}

          "Authorization" : "Bearer my_securiy_token"

           "Content-Type" : "application/json"

endpoint : "https://content.dropboxapi.com/2/files/get_preview"

method : "POST"

 

response : system.HttpResponse[Status=Bad Request, StatusCode=400]

5 Replies 5

Re: Call get_preview http method returning 404 error

Greg-DB
Dropboxer

[Cross-linking for reference: https://stackoverflow.com/questions/39016383/call-get-preview-http-method-returning-404-error ]

What's the response body? It should contain a more useful error.

Re: Call get_preview http method returning 404 error

Hananel C.
New member | Level 2

Only : 'bad data'
Can you give me example for a working request of this type?

Re: Call get_preview http method returning 404 error

Greg-DB
Dropboxer

Are you sure that's the actual/entire response body? That doesn't look like an error from the Dropbox API.

Anyway, the documentation includes a curl example:

https://www.dropbox.com/developers/documentation/http/documentation#files-get_preview

Re: Call get_preview http method returning 404 error

Hananel C.
New member | Level 2

Yes, thats all.
Sorry i mistakes the error code is 400 which means bad argument value.

Re: Call get_preview http method returning 404 error

Stephen C.14
Dropboxer

@Hananel C.: Could you post the code that you used to make this request?

Poll
We love to learn from the educators who use Dropbox. Whether you teach kids, teens, adults or a combination of all three, we want to know what apps and integrations you use with Dropbox to help with teaching. Which of the ones below is your favorite, or most used tool?
Who's talking

Top contributors to this post

  • User avatar
    Stephen C.14 Dropboxer
  • User avatar
    Hananel C. New member | Level 2
  • User avatar
    Greg-DB Dropboxer
What do Dropbox user levels mean?
Need more support?