Your workflow is unique 👨‍💻 -  tell us how you use Dropbox here.

Forum Discussion

Project Luca's avatar
Project Luca
New member | Level 1
9 years ago

Dropbox API usage with trailing slashes

Hey guys,

Our dropbox implementation appeared broken on production environment  and we saw that a trailing slash on the following endpoint returned a unknown API endpoint error. This seemed to work fine ( with the trailing slashes "/" ) until earlier this week and looks like a recent regression. Also, am not sure if its just this endpoint that returns this error with trailing "/" or other endpoints are affected by this as well. 

It would be great if you could notify the clients before making such a change? 

 

 

Doesnt Work:

curl -X POST https://api.dropboxapi.com/2/files/list_folder/ \

 --header 'Authorization: Bearer XXX' \

 --header 'Content-Type: application/json' \

 --data '{"path":""}'

Unknown API function: "files/list_folder/".%    

 

Works:

curl -X POST https://api.dropboxapi.com/2/files/list_folder \

 --header 'Authorization: Bearer XXX' \

 --header 'Content-Type: application/json' \

 --data '{"path":""}'

 

Thanks

-Vasanth

3 Replies

Replies have been turned off for this discussion
  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    9 years ago

    Thanks for the report Vasanth, and apologies for the trouble! It looks like there was a recent change to our routing system that changed the handling for calls with an extra trailing slash like this.

    We of course never intend to release breaking changes without notifying developers. The API v2 routes are documented without a trailing slash though, so this wasn't on our radar as something to notify developers of.

  • Project Luca's avatar
    Project Luca
    New member | Level 1
    9 years ago

     Thank you for the confirmation Gregory. Do we know when exactly this change was effected? 

    -Vasanth

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    9 years ago

    I believe the change rolled out on Monday, the 6th.

About Dropbox API Support and Feedback

Node avatar for Dropbox API Support and Feedback
Get help with the Dropbox API from fellow developers and experts.

The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.

If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.

For more info on available support options for your Dropbox plan, see this article.

If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!