Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
Hi,
I recently migrate from API v1 to API v2.
I use the Dropbox nugget for C#.
Everything was working fine in september (with this new API v2 code) but since today (or the 1st of october) my new code doesn't work.
Here is the code :
using (dbx = new DropboxClient(Token)) { var full = await dbx.Users.GetCurrentAccountAsync(); string DropBoxName=System.IO.Path.GetFileName(Filename); await Upload(Filename, "/" + DropBoxName); }
In fact dbx.Users.GetCurrentAccountAsync(); doesn't return, without any message/error/timeout/exception... Any idea ?
Nothing appears wrong with your call to GetCurrentAccountAsync, and if anything goes wrong you should certainly get some sort of error. I just tried it anyway and it worked for me (except that I don't have your Upload definition).
You don't appear to be using the return value `full` in this code though, and you also included calls to `GetFileName` and `Upload`. How are you checking that it's hanging on `GetCurrentAccountAsync` in particular and not one of the others?
Found the problem ! My assembly was working fine in a small c# project but the issue comes from a security callback added to ServicePointManager.ServerCertificateValidationCallback in the other project (to check server side certificate).
Problem fixed !
Hi there!
If you need more help you can view your support options (expected response time for a ticket is 24 hours), or contact us on X or Facebook.
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!