cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Update: Find information on Dropbox support during COVID-19 here
Close
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted

Call get_preview http method returning 404 error

New member | Level 2
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
Highlighted

Re: Call get_preview http method returning 404 error

Dropboxer
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.

Highlighted

Re: Call get_preview http method returning 404 error

New member | Level 2
New member | Level 2

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

Highlighted

Re: Call get_preview http method returning 404 error

Dropboxer
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

Highlighted

Re: Call get_preview http method returning 404 error

New member | Level 2
New member | Level 2

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

Highlighted

Re: Call get_preview http method returning 404 error

Dropboxer
Dropboxer

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

Work Smarter with Dropbox

The way we work is changing. Share and discover new ways to work smarter with Dropbox in our community.

Sound good? Let's get started.
Who's talking

Top contributors to this post

What do Dropbox user levels mean?
Need more support?