Forum Discussion

Ivan_Gusev's avatar
Ivan_Gusev
Explorer | Level 3
8 years ago

.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.

 

    • Ivan_Gusev's avatar
      Ivan_Gusev
      Explorer | 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's avatar
        Greg-DB
        Icon for Dropbox Staff rankDropbox 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

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,949 PostsLatest Activity: 27 minutes ago
352 Following

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!