-
-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FlurlParsingException when parsing created_at field from ListAccountsAsync() #52
Comments
Hello Lucas, I don't know. You're probably not doing anything wrong, most likely Coinbase again not very clear with their documentation on the JSON schema being returned. Please use Fiddler and enable the proxy debugging feature in
Then post me the anonymized JSON you received that caused your CLR stack to pop. Once I have the JSON I should be able to write a unit test. Thanks, |
Thanks for the reply Brian, Unfortunately this exception is only being thrown on a live web application when other users are connecting through their OAuth token. I was unable to replicate this on my own account or any of my friends accounts who have accessed the website. Each of the exceptions were reported on Sentry. Will this need to be replicated locally before I can get you that JSON? Or is there anything else I can do to get you more context? Thanks |
Hi Lucas, Give Keep an eye out and let me know if 91ff677 fixed the problem. Thanks, |
Wow, thank you for such the fast response Brian! I'll get that updated as soon as that build is done. Best, |
No problem. 😎 Thanks for reporting the issue 👍 Just got the email notification: https://www.nuget.org/packages/Coinbase/5.0.7 |
In my application I am attempting to iterate over each account and read in transaction data. During the API call I am getting this exception when the 'created_at' field is being parsed:
Flurl.Http.FlurlParsingException
Response could not be deserialized to JSON: GET https://api.coinbase.com/v2/accounts
Newtonsoft.Json.JsonSerializationException
Error converting value {null} to type 'System.DateTimeOffset'. Path 'data[7].created_at', line 1, position 4571.
Flurl.Http.Configuration.NewtonsoftJsonSerializer in Deserialize within Flurl.Http, Version=2.4.0.0, Culture=neutral, PublicKeyToken=null
Flurl.Http.HttpResponseMessageExtensions+d__0`1 in MoveNext within Flurl.Http, Version=2.4.0.0, Culture=neutral, PublicKeyToken=null
System.ArgumentException
Could not cast or convert from {null} to System.DateTimeOffset.
In my code I am trying to retrieve the accounts by calling:
var accountsResponse = await client.Accounts.ListAccountsAsync();
Am I doing something incorrect with this usage?
The text was updated successfully, but these errors were encountered: