Start 2025 on time and up to date. Seamlessly integrate your calendars into Dropbox with these simple steps.

Forum Discussion

Ashley B.15's avatar
Ashley B.15
Helpful | Level 7
9 years ago

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

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

  • 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.)

     

     

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff

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