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

Forum Discussion

Info V.1's avatar
Info V.1
Collaborator | Level 8
10 years ago

Upload to a shared folder - 500 internal server error

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

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

    Thank you for alerting us to this problem. Dropbox engineers are aware of the problem and are working on a solution.

    Apologies for any inconvenience this has caused.

    By the way, for the sake of security, you should disable that access token. You can do so by revoking access to the app entirely, if the access token is for your account, here:

    https://www.dropbox.com/account/security

    Or, you can disable just this access token using the /disable_access_token endpoint:

    https://www.dropbox.com/developers/core/docs#disable-token

     

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

    We've had our engineers working on this and the good news is the problem has been fixed. Please try again and you should find that this functionality works correctly.

  • Dave K.17's avatar
    Dave K.17
    New member | Level 1
    10 years ago

    I'm encountering the same issue, just tested. Create a empty shared folder and try to upload a file immediately to it. File is uploaded successfully, but nil response and a 500 status code.

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

    Thanks for the report Dave! We are aware of and working on that version of the issue as well.

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

    This should be resolved now. Please let me know if you're still seeing any issues.

  • Thiago Roberto 's avatar
    Thiago Roberto
    New member | Level 1
    9 years ago

    I am facing the same error now. This is the error using the java api: 

    com.dropbox.core.DbxException$ServerError: {"error": "Internal Server Error"}

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

    Thanks Thiago. This was due to a general service availability issue, and is resolved now.

  • Suryakant D.'s avatar
    Suryakant D.
    New member | Level 1
    9 years ago

    I am finding similar issue. That i am trying to add a member to dropbox folder but it is throwing following error 

    com.dropbox.core.v2.DbxSharing$AddFolderMemberException: Exception in add_folder_member: AddFolderMemberError.{".tag":"access_error","access_error":{".tag":"invalid_id"}} (user message: Invalid shared folder ID.)

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.

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!