Endogen / OpenCryptoBot

Telegram bot to access various information about crypto-currencies
GNU Affero General Public License v3.0
122 stars 57 forks source link

Is this still working? Receiving JSONDecodeErrors on any token #13

Open ghost opened 2 years ago

ghost commented 2 years ago

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.

Endogen commented 2 years ago

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