One month down in 2025: How are your resolutions coming along? Check out how to get back on track here.
Forum Discussion
Ivan_Gusev
8 years agoExplorer | Level 3
.Net v2 SDK DropboxOAuth2Helper.ProcessCodeFlowAsync
Hello!
We use the Official Dropbox .Net v2 SDK
Some of my clients are getting this message if they try to enter confirm oauth code.
We have checked their detailed debug log and we have noticed, when the app invokes
DropboxOAuth2Helper.ProcessCodeFlowAsync
then it returned the error:
Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: <. Path '', line 0, position 0.
But, it looks like there is no way to get a full response message from the dropbox server with a detailed information related to this error.
I'm wondering, is there any way to get a full response from the service in this case?
In fact, we have many installations of our application and this code working fine on many of them, but there are a few installations with this strange error message.
- Greg-DB
Dropbox Staff
It looks like you should be able to configure network tracing as shown here for additional output:
https://docs.microsoft.com/en-us/dotnet/framework/network-programming/how-to-configure-network-tracing
Is there any particular input (for the 'code' parameter) that is causing this though? We can try to reproduce this here if we know the steps to do so. Thanks in advance!- Ivan_GusevExplorer | Level 3
Hello Greg,
We can not reproduce the issue like our client gets, also we do not know what "code" he had.
You can get a similar, but not quite the same, error message if you enter "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" instead of the authorization code.
In the network.log, I can see the following message "Internal Server Error".
But the client seems to get another response, in which he has the first character "<".
We will ask the client to enable network.log
- Greg-DB
Dropbox Staff
Thanks! The "Internal Server Error" for a malformed code like that is a known issue.
Please do let us know if you get the log for the "<" issue though. That may be a different issue, so we'll need to figure out how to reproduce it. I suspect there's some unexpected value being sent that is causing the call to fail like that. Thanks!
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,949 PostsLatest Activity: 27 minutes ago
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 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!