We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
azure313
6 years agoNew member | Level 2
SSL certificate verify result: unable to get local issuer certificate (20), continuing anyway
Hi, Our developer call API to upload file to Dropbox "https://content.dropboxapi.com/2/files/upload" using C, but it has this error: I can you Postman or Java SDK code upload successful with t...
Greg-DB
Dropbox Community Moderator
6 years agoThere are a few things to note here:
- "Network is unreachable" seems to indicate an issue with the network connection, but the connection appears to then actually work anyway.
- "unable to get local issuer certificate (20), continuing anyway" seems to indicate that the client wasn't able to get the relevant certificate from its local store, but ignored this issue. (Do you have certificate verification disabled? This isn't recommended, as a matter of security.) The Dropbox API content servers are being served with valid certificates though, so you should make sure your system trusts that and enable verification.
- You seem to be using a "Content-Type" of "multipart/form-data...", which isn't supported by the Dropbox API. The /2/files/upload endpoint expects a request of type "application/octet-stream".
- You seem to be getting a 400 error back. You should print out the response body itself, as it should contain a more useful error. (It may be related to the incorrect "Content-Type" noted above.)
- The "Failed writing body" seems to indicate that curl wasn't able to write the body out for some reason. I can't offer much support for that though as it seems to be related to curl itself.
About 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!