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: 

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.

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
    Project Luca New member | Level 1
What do Dropbox user levels mean?
Need more support?