cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Back again with another edition of 'How we use Dropbox', so find out how Emma uses to-do lists to get it all done here!

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

.Net v2 SDK DropboxOAuth2Helper.ProcessCodeFlowAsync

.Net v2 SDK DropboxOAuth2Helper.ProcessCodeFlowAsync

Ivan_Gusev
Explorer | Level 3

 

Untitled.jpg

 

 

 

 

 

 

 

 

 

 

 

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.

 

3 Replies 3

Re: .Net v2 SDK DropboxOAuth2Helper.ProcessCodeFlowAsync

Greg-DB
Dropboxer
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-traci...

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!

Re: .Net v2 SDK DropboxOAuth2Helper.ProcessCodeFlowAsync

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.

 

2017-09-04_14-18-24.png

 

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

Re: .Net v2 SDK DropboxOAuth2Helper.ProcessCodeFlowAsync

Greg-DB
Dropboxer
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!
Poll
We love to learn from the educators who use Dropbox. Whether you teach kids, teens, adults or a combination of all three, we want to know what apps and integrations you use with Dropbox to help with teaching. Which of the ones below is your favorite, or most used tool?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropboxer
  • User avatar
    Ivan_Gusev Explorer | Level 3
What do Dropbox user levels mean?
Need more support?