OpenCryptoBot icon indicating copy to clipboard operation
OpenCryptoBot copied to clipboard

Is this still working? Receiving JSONDecodeErrors on any token

Open ghost opened this issue 2 years ago • 1 comments

Exception in thread Thread-59: Traceback (most recent call last): File "C:\Users\xxxx\AppData\Local\Programs\Python\Python37-32\Lib\threading.py", line 917, in _bootstrap_inner self.run() File "C:\Users\xxxx\AppData\Local\Programs\Python\Python37-32\Lib\threading.py", line 865, in run self._target(*self._args, **self._kwargs) File "I:\xxxxx\OpenCryptoBot-master\opencryptobot\plugins\chart.py", line 225, in _get_cmc_coin_id for listing in APICache.get_cmc_coin_list(): File "I:\xxxxx\OpenCryptoBot-master\opencryptobot\api\apicache.py", line 66, in get_cmc_coin_list return Market().listings()["data"] TypeError: 'JSONDecodeError' object is not subscriptable

The above error occurs with any coin check, even BTC.

ghost avatar Jan 16 '22 23:01 ghost

Hi. Not sure if it still works. I guess you get that error because CoinGecko changes some JSON structure in their API calls. If you fix that, it will work IMO.

But unfortunately i don't have the time to do that change. Because of time constraints i can't work on this anymore

Endogen avatar Jan 17 '22 09:01 Endogen