cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
We are making some updates so the Community might be down for a few hours today. Apologies for the inconvenience and thank you for your patience. You can find out more 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: 

when I use dropboxAPI to delete file, I get 500 error. why?

when I use dropboxAPI to delete file, I get 500 error. why?

mytest101
Explorer | Level 3

It work well,when App run as normal user privilege.  but when App run as system privilege, I got 500 error.  Code: WinHttpOpenRequest(hConnect,L"POST",L"2/files/delete_v2", L"HTTP/1.1", WINHTTP_NO_REFERER,WINHTTP_DEFAULT_ACCEPT_TYPES,WINHTTP_FLAG_SECURE);

3 Replies 3

Greg-DB
Dropbox Staff

I'll be happy to help with any issues you're having with the Dropbox API, but I'll need some more information. Please reply with:

  • the steps to reproduce the issue, including relevant code snippet(s), but don't include any access or refresh token(s)
  • the full text of any error or unexpected output
  • 5-10 sample 'X-Dropbox-Request-Id' response header values for the failures

mytest101
Explorer | Level 3

Thank you for your reply; when I run my app as user privilege ,All works well. but run as system privilege , I receive statusCode=500,All response message: 

HTTP/1.1 500   

Cache-Control: no-cache

Content-Type: text/plain: charset-utf-8

server: envoy

Content-security-policy: sandbox allow-forms allow-scripts 

x-content-type-option: nosiff

accept-encoding: identity,gzip

x-dropbox-response-origin: far_remote 

use code like: WinHttpConnect(hin,"api.dropboxapi.com",443,0);

                 WinHttpOpenRequest(**,"POST", 2/files/delete_v2.**);

                 WinHttpAddRequestHeader("Authorization: Bearer *******");

                 WinHttpAddRequestHeader("Content-type: application/json");

                WinhttpSendRequest(**, "{\"path\": \"/work/path\"}");

Greg-DB
Dropbox Staff

Thanks for following up. Can you please share the rest of the requested information so we can look up these errors? Thanks in advance!

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
  • User avatar
    mytest101 Explorer | Level 3
What do Dropbox user levels mean?