kmadac / bitstamp-python-client

Python package to communicate with bitstamp.net
MIT License
143 stars 70 forks source link

Could not decode json for: " + response.text #36

Open stefansill opened 6 years ago

stefansill commented 6 years ago

When i let my script run it works fine for like 2-3 minutes, then it stops giving me this error. Could not find anything in the Documentation.

Traceback (most recent call last): File "C:\Users\Stefan\Desktop\btc.py", line 15, in ethusdbid = float(public_client.ticker(base='eth')['bid']) File "C:\Users\Stefan\AppData\Local\Programs\Python\Python37-32\lib\site-packages\bitstamp\client.py", line 111, in ticker return self._get(url, return_json=True, version=2) File "C:\Users\Stefan\AppData\Local\Programs\Python\Python37-32\lib\site-packages\bitstamp\client.py", line 39, in _get return self._request(requests.get, *args, **kwargs) File "C:\Users\Stefan\AppData\Local\Programs\Python\Python37-32\lib\site-packages\bitstamp\client.py", line 98, in _request "Could not decode json for: " + response.text) bitstamp.client.BitstampError: Could not decode json for: