-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
Json exception when trying to obtain list of CoinMarkets #5
Comments
Thanks for the report! The current price field needs to be changed to a Double, I will update shortly. CoinGecko-Kotlin/src/commonMain/kotlin/drewcarlson/coingecko/models/coins/CoinMarkets.kt Lines 18 to 19 in d3bf5cb
|
I've resolved the |
Same issue with marketCapChange24h And i think that for some coins, totalVolume will also be a double. |
OK, thanks for reporting again. I only used Bitcoin in the test, though I see more should have been added. Will do a more thorough check and get back to you. |
Version 0.1.3 should be available shortly. Let me know if any other endpoints give you trouble. |
Thank you very much for the quick response and fix!! |
Sorry, just tested, new issue I guess high24 and low24 can be null. Probably the same with most fields. |
That specific error is considered in #1, there is a fix available that I will apply. Can I ask if you are only using the JVM/Android artifacts? |
Yes, I'm only using the JVM/Android artifact. |
Can you try version 0.1.4-1.4.0-rc and see if that resolves the nullability error? |
Just tested. It does solved the nullability error. Now I can fetch the first 100 coins without any errors. |
When trying to use method getCoinMarkets, the response is always:
Unexpected JSON token at offset 156: Failed to parse 'long'.
JSON input: .....3579","current_price":11864.4,"market_cap":218935913104,"mar.....
The text was updated successfully, but these errors were encountered: