cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Back again with another edition of 'How we use Dropbox', so find out how Emma uses to-do lists to get it all done 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: 

The remote server returned an error: (414) Request-URI Too Large.

The remote server returned an error: (414) Request-URI Too Large.

Ashley B.15
Helpful | Level 6

I'm using the current end point to retrieve a users folders and files:

https://www.dropbox.com/developers-v1/core/docs#delta

 

I get the following error The remote server returned an error: (414) Request-URI Too Large. the cursor returned from the end point is 31279 characters in length the entries count: 2000 I've tried to reproduce this but can't Do you know why this might be occuring ?

 

Thanks

1 Accepted Solution

Accepted Solutions

Re: The remote server returned an error: (414) Request-URI Too Large.

Greg-DB
Dropboxer

Hi Ashley, the cursor can get very large like this when the account has many shared folders. The 414 error indicates that the URI (including the parameters, in this case, the long cursor) is too long to be processed.

 

Instead, you can include the parameters in the body of the API call, not on the URI itelf. For example, in curl, that would mean instead of doing something like this:

 

curl -X "POST" "https://api.dropboxapi.com/1/delta?cursor=CURSOR_HERE" \
    -H "Authorization: Bearer ACCESS_TOKEN_HERE"

you would do something like this:

 

 

curl -X "POST" "https://api.dropboxapi.com/1/delta" \
    -H "Authorization: Bearer ACCESS_TOKEN_HERE" \
    --data "cursor=CURSOR_HERE"

(Also, I should note that API v1 is deprecated, so we recommend migrating to API v2 as soon as possible.)

 

 

View solution in original post

4 Replies 4

Re: The remote server returned an error: (414) Request-URI Too Large.

Mark
Super User II
*moves to API forum*

 


:penguin::penguin: - :penguin: - :penguin: - :penguin:


Heart Did this post help you? If so please mark it for some Kudos below. 


:white_check_mark: Did this post fix your issue/answer your question? If so please press the 'Accept as Solution' button to help others find it.


:arrows_counterclockwise: Did this post not resolve your issue? If so please give us some more information so we can try and help - please remember we cannot see over your shoulder so be as descriptive as possible! 


 

Re: The remote server returned an error: (414) Request-URI Too Large.

Greg-DB
Dropboxer

Hi Ashley, the cursor can get very large like this when the account has many shared folders. The 414 error indicates that the URI (including the parameters, in this case, the long cursor) is too long to be processed.

 

Instead, you can include the parameters in the body of the API call, not on the URI itelf. For example, in curl, that would mean instead of doing something like this:

 

curl -X "POST" "https://api.dropboxapi.com/1/delta?cursor=CURSOR_HERE" \
    -H "Authorization: Bearer ACCESS_TOKEN_HERE"

you would do something like this:

 

 

curl -X "POST" "https://api.dropboxapi.com/1/delta" \
    -H "Authorization: Bearer ACCESS_TOKEN_HERE" \
    --data "cursor=CURSOR_HERE"

(Also, I should note that API v1 is deprecated, so we recommend migrating to API v2 as soon as possible.)

 

 

View solution in original post

Re: The remote server returned an error: (414) Request-URI Too Large.

Ashley B.15
Helpful | Level 6

Thanks. One other quick question. What is the best/prefered way for a desktop application to retrieve all users folders and files? Is it the deleta or metadata endpoint in v1 api?

 

I did  move to v2 api but still waiting on feedback for this post :

https://www.dropboxforum.com/t5/API-support/500-internal-Server-Error-https-api-dropboxapi-com-2-fil...

 

Thanks again

Re: The remote server returned an error: (414) Request-URI Too Large.

Greg-DB
Dropboxer
In API v1, /delta is preferred for listing all files and folders.
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
    Greg-DB Dropboxer
  • User avatar
    Ashley B.15 Helpful | Level 6
  • User avatar
    Mark Super User II
What do Dropbox user levels mean?
Need more support?