cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Not happy with your Spotify Wrapped? Check out how Kevin on the Dropbox team used Paper to make sure he keeps discovering new music over 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: 
1
Ask
2
Reply and help

Dropbox API usage with trailing slashes

Dropbox API usage with trailing slashes

Project Luca
New member | Level 1

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 3

Re: Dropbox API usage with trailing slashes

Greg-DB
Dropboxer

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.

Re: Dropbox API usage with trailing slashes

Project Luca
New member | Level 1

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

-Vasanth

Re: Dropbox API usage with trailing slashes

Greg-DB
Dropboxer

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

Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropboxer
  • User avatar
    Project Luca New member | Level 1
What do Dropbox user levels mean?
Need more support?