Skip to content
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

Deserialized to JSON #60

Open
ticool opened this issue Feb 7, 2022 · 1 comment
Open

Deserialized to JSON #60

ticool opened this issue Feb 7, 2022 · 1 comment

Comments

@ticool
Copy link

ticool commented Feb 7, 2022

Flurl.Http.FlurlParsingException: 'Response could not be deserialized to JSON:
GET https://api.pro.coinbase.com/orders?status=all&product_id=BAT-USDC&limit=100'

JsonReaderException: Unexpected character encountered while parsing value: <. Path '', line 0, position 0.

Coinbase.Pro 4.2.2

@ticool
Copy link
Author

ticool commented Mar 21, 2022

Will you fix that error it happen very often ???

await moduleCoinBase.Client.Orders.GetAllOrdersAsync(productId: productId, limit: limit);

I found a repro !

It happens when there is to mutch call in same time to the CoinBase Api server. The call return 0 Item and the parser crash and the application crash ...

So can you fix the code so it handle a response with no object ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant