cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Share your feedback on the Document Scanning Experience in the Dropbox App right 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: 

Upload to a shared folder - 500 internal server error

Upload to a shared folder - 500 internal server error

Info V.1
Collaborator | Level 8

Scenario,

- Create new folder test1
- Upload a file to test1 - File successfully uploaded and 200 response
- Share test1 with another user
- Upload a file to test1 - File successfully uploaded but returns 500 response
- After this even after you remove the sharing, we continue to see 500 response.

HTTP Snippet

POST /2/files/upload HTTP/1.1
Authorization: Bearer <REDACTED> 
Dropbox-API-Select-User: dbmid:AACB4eHBbOAzCgSxWwzsa2BD_ASXGxP4IUM
Dropbox-API-Arg: {"mode":"add","path":"/test/secured1/somename3.docx","mute":true,"autorename":false}
Content-Length: 3554
Content-Type: application/octet-stream
Host: content.dropboxapi.com
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.3.2 (java 1.5)
Accept-Encoding: gzip,deflate
"POST /2/files/upload HTTP/1.1[\r][\n]"
"Authorization: Bearer <REDACTED>[\r][\n]"
"Dropbox-API-Select-User: dbmid:AACB4eHBbOAzCgSxWwzsa2BD_ASXGxP4IUM[\r][\n]"
"Dropbox-API-Arg: {"mode":"add","path":"/test/secured1/somename3.docx","mute":true,"autorename":false}[\r][\n]"
"Content-Length: 3554[\r][\n]"
"Content-Type: application/octet-stream[\r][\n]"
"Host: content.dropboxapi.com[\r][\n]"
"Connection: Keep-Alive[\r][\n]"
"User-Agent: Apache-HttpClient/4.3.2 (java 1.5)[\r][\n]"
"Accept-Encoding: gzip,deflate[\r][\n]"
"[\r][\n]"
…
…

"HTTP/1.1 500 Internal Server Error[\r][\n]"
"Server: nginx[\r][\n]"
"Date: Thu, 14 Jan 2016 20:40:45 GMT[\r][\n]"
"Content-Type: text/plain; charset=utf-8[\r][\n]"
"Transfer-Encoding: chunked[\r][\n]"
"Connection: keep-alive[\r][\n]"
"X-Dropbox-Request-Id: 8ce8606540accc3161d8967f72aca512[\r][\n]"
"X-Robots-Tag: noindex, nofollow, noimageindex[\r][\n]"
"[\r][\n]"
"0[\r][\n]"
"[\r][\n]"
HTTP/1.1 500 Internal Server Error
Server: nginx
Date: Thu, 14 Jan 2016 20:40:45 GMT
Content-Type: text/plain; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
X-Dropbox-Request-Id: 8ce8606540accc3161d8967f72aca512
X-Robots-Tag: noindex, nofollow, noimageindex

 

--

Edit: Redacted access token. -Greg

10 Replies 10

Greg-DB
Dropbox Staff

Hi Suryakant, you can find information on the SharedFolderAccessError.INVALID_ID error here:

https://dropbox.github.io/dropbox-sdk-java/api-docs/v2.0.x/com/dropbox/core/v2/sharing/SharedFolderA...

In short, the shared folder ID you provided was invalid. Make sure you're sending up a valid ID, as retrieved from elsewhere in the API.

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
  • User avatar
    Suryakant D. New member | Level 1
  • User avatar
    Thiago Roberto New member | Level 1
What do Dropbox user levels mean?