cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Find out how Tiffany, a Customer Experience superstar uses Dropbox to keep her family in the loop when it comes to her new baby 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: 

Unhelpful error on "sharing/share_folder" API call with malfolrmed path.

Unhelpful error on "sharing/share_folder" API call with malfolrmed path.

Sam S.6
Explorer | Level 4

When calling the `sharing/share_folder` endpoint with a path that contains disallowed characters, for example that ends with a backslash "\", the endpoint won't return a WriteError (malformed_path) but rather a HTTP error 500 (internal Dropbox error). This is not particularly helpful since it does not allow us to distinguish between actual backend errors and invalid input.

 

According to the documentation on Team Spaces and looking at the actual behaviour of the `sharing/share_folder` endpoint, a call with a non-existing path will create the specified folder. I would therefore expect that similar `WriteError`s as for `files/create_folder` should be returned in some cases.

 

If you'd like to look into the actual requests which I made to test this, the latest request id is 

52e7070699b94a88a1a1e7c47655d11a.

1 Accepted Solution

Accepted Solutions

Re: Unhelpful error on "sharing/share_folder" API call with malfolrmed path.

Greg-DB
Dropboxer

Thanks for the report. I'll ask the team to fix up that error handling so it returns a proper error in that kind of case.

View solution in original post

1 Reply 1

Re: Unhelpful error on "sharing/share_folder" API call with malfolrmed path.

Greg-DB
Dropboxer

Thanks for the report. I'll ask the team to fix up that error handling so it returns a proper error in that kind of case.

View solution in original post

Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropboxer
What do Dropbox user levels mean?
Need more support?