Skip to content
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

Error in periodic_update function #25

Closed
lourencor opened this issue Nov 28, 2021 · 1 comment
Closed

Error in periodic_update function #25

lourencor opened this issue Nov 28, 2021 · 1 comment

Comments

@lourencor
Copy link

Describe the bug
So, this started happening yesterday while in the middle of trying to sell RNDR.

Couldn't figure out why since there is not update on the bot, and no parsing error that I can detect on version.json

Error Log

Traceback (most recent call last):
  File "/home/ubuntu/trading_bots/trading-bot-new-coins/bot/bot.py", line 57, in run_async
    self.periodic_update()
  File "/home/ubuntu/trading_bots/trading-bot-new-coins/bot/bot.py", line 159, in periodic_update
    self.upgrade_update()
  File "/home/ubuntu/trading_bots/trading-bot-new-coins/bot/bot.py", line 139, in upgrade_update
    self.config.check_version()
  File "/home/ubuntu/trading_bots/trading-bot-new-coins/util/config.py", line 125, in check_version
    latest_versions = json.loads(requests.get(self.VERSION_URL).text)
  File "/usr/lib/python3.8/json/__init__.py", line 357, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python3.8/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python3.8/json/decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
@cdalton713
Copy link
Owner

This may have been a network issue, I'll add exception handling to skip over this check if parsing fails.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants