cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Musicians, convert your MuseScore files to PDF to play music on the go! Learn 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: 

Re: 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?