We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
NetSecCSU3
7 years agoNew member | Level 2
Dropbox Asynchronous API Calls Throwing "ArgumentOutOfRangeException"
I am building a Unity game that needs to utilize file storage of some sort. Because of its examples, documentation, and support, I decided to go with Dropbox API 2.0.
I am using the code from Dropb...
NetSecCSU3
7 years agoNew member | Level 2
Getting rid of the custom client and IntializeCertPinning does get rid of the Exception, however, no file is ever uploaded, which means the Certificate issue likely still applies. My next question then would be: is there any way to provide Unity with a static dropbox certificate beforehand like such?: Unity - Manual - Networking Issues
Greg-DB
Dropbox Community Moderator
7 years agoThanks for trying that and letting me know. I'm glad to hear that cleared up that exception.
There are other ways for uploads like this to fail, so it may not still be a certificate issue. The file would be committed by the `UploadSessionFinishAsync` method. What does that method return for you now? Or, does code execution even reach there? I recommend adding some logging and/or stepping through with a debugger to see what's happening, since you don't currently seem to be checking the return value for the upload session calls.
Anyway, I'd also try adding back each of the `InitializeCertPinning` and the custom HTTP client individually to see which one is causing the issue (if it is just one of them). If it's just the custom client, you may still be able to use `InitializeCertPinning`. Otherwise, I can't offer much guidance on how to configuring Unity to pin the certificate. You can find the certificate information and code here though, in case it helps. In any case, the Dropbox API servers aren't self-signed, and the certificate pinning isn't strictly necessary. All Dropbox API calls require TLS, and the pinning would just be an additional security measure.
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!