You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 5, 2023. It is now read-only.
Just tried running this script to pull the info for my validator for Janurary-April and got the following error.
Getting price data and writing rewards to file: 0%| | 0/3 [00:31<?, ?it/s]
Traceback (most recent call last):
File "main.py", line 188, in <module>
main()
File "main.py", line 184, in main
write_rewards_to_file(datapoint_dict=dp_dict)
File "main.py", line 159, in write_rewards_to_file
raise e
File "main.py", line 156, in write_rewards_to_file
cg_data = resp.json()
File "/home/user/.local/lib/python3.8/site-packages/requests/models.py", line 900, in json
return complexjson.loads(self.text, **kwargs)
File "/usr/lib/python3/dist-packages/simplejson/__init__.py", line 518, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3/dist-packages/simplejson/decoder.py", line 370, in decode
obj, end = self.raw_decode(s)
File "/usr/lib/python3/dist-packages/simplejson/decoder.py", line 400, in raw_decode
return self.scan_once(s, idx=_w(s, idx).end())
simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)```
The text was updated successfully, but these errors were encountered:
Hi, from what I can tell from this error it looks like CoinGecko didn't return valid JSON for some reason (or the response was in some way unexpected).
It's possible this only occurred for a little while because CoinGecko was doing maintenance or something like that. Was it a one time thing or are you still getting this same error? I am unable to reproduce it right now.
If you're still getting the error, could you include the following info to help me reproduce it?
START_DATE, END_DATE you're using
the CURRENCY you are using
it looks like you're running an older version of the script, can you include the commit hash that you're using / alternatively could you try with the latest version and post the error message?
Hi @Zaphod101010 , I'm going to close this issue now but if you're still experiencing the same issue with the latest version of the script, feel free to get back to me here again.
Just tried running this script to pull the info for my validator for Janurary-April and got the following error.
The text was updated successfully, but these errors were encountered: