-
-
Notifications
You must be signed in to change notification settings - Fork 31.4k
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
JSONDecodeError in coinmarketcap component. #26410
Comments
Seems like that is an error on the side of the python package coinmarketcap. |
Thank you, i will open an issue there. |
Of course! Hopefully this will be fixed soon.
I am not quite sure to be honest, the waqi-async package seems to be connected to asyncio in some way or another. Since I have not any experience with asyncio yet I cannot really say if these issues are related or not. |
@springstan Thanks for your kindly explanation, very helpful. |
@sephrioth how does your configuration for this integration look like? Trying to reproduce your issue. |
Should be quite normal.. and i didn't make any changes. All coinmarketcap sensors report the same error. But sometimes when I just restart HA , it works well for about couple minutes, then the error appears. - platform: coinmarketcap
currency_id: 1
display_currency: USD
display_currency_decimals: 2
- platform: coinmarketcap
currency_id: 1027
display_currency: BTC
display_currency_decimals: 8
- platform: coinmarketcap
currency_id: 2010
display_currency: BTC
display_currency_decimals: 8
- platform: coinmarketcap
currency_id: 1376
display_currency: BTC
display_currency_decimals: 8
- platform: coinmarketcap
currency_id: 1765
display_currency: BTC
display_currency_decimals: 8
- platform: coinmarketcap
currency_id: 1839
display_currency: BTC
display_currency_decimals: 8 |
This is from the current API endpoint I am not quite sure if this is related to your problem but it seems that this API is slowly being taken down and services should migrate over to their new API. In addition, there is a new python package for the new API but it is not used very much so that could be a reason why Home Assistant has not switched yet. |
@springstan Thanks for your effort on this, but I don't have a clue. Have you also got this error? |
No problem, that is okay. Unfortunately, I cannot test your configuration in my setup right now but I will get back to you as soon as I can. |
@sephrioth Yes I also have the same error so it is not just your setup. |
Glad to know i am not the only one, hope they fix soon. |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. |
Did you eventually create the issue @sephrioth? Can you refer the issue number? Edit: found it. barnumbirr/coinmarketcap#55 |
Home Assistant release with the issue:
v98.2
Last working Home Assistant release (if known):
Operating environment (Hass.io/Docker/Windows/etc.):
Docker
Component/platform:
sensor.coinmarketcap
Description of problem:
Can't update / setup coinmarketcap sensor
Problem-relevant
configuration.yaml
entries and (fill out even if it seems unimportant):Traceback (if applicable):
Additional information:
The text was updated successfully, but these errors were encountered: