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

imgur module is very broken #246

Open
jesopo opened this issue Feb 21, 2020 · 0 comments
Open

imgur module is very broken #246

jesopo opened this issue Feb 21, 2020 · 0 comments
Labels

Comments

@jesopo
Copy link
Member

jesopo commented Feb 21, 2020

2020-02-21T07:17:15.853 [ERROR] failed to call event "received.message.channel"
Traceback (most recent call last):
  File "/opt/bitbot/src/EventManager.py", line 203, in _call
    returned = hook.call(event)
  File "/opt/bitbot/src/EventManager.py", line 53, in call
    return self.function(event)
  File "/opt/bitbot/src/core_modules/commands/__init__.py", line 354, in channel_message
    buffer_line=event["buffer_line"])
  File "/opt/bitbot/src/core_modules/commands/__init__.py", line 205, in command
    hook.call(new_event)
  File "/opt/bitbot/src/EventManager.py", line 53, in call
    return self.function(event)
  File "/opt/bitbot/modules/imgur.py", line 36, in _regex_image
    event["stdout"].write(self._parse_image(event["match"].group(1)))
  File "/opt/bitbot/modules/imgur.py", line 77, in _parse_image
    headers={"Authorization": "Client-ID %s" % api_key}).json()
  File "/opt/bitbot/src/utils/http.py", line 129, in json
    return _json.loads(self.data)
  File "/usr/lib/python3.7/json/__init__.py", line 348, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python3.7/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python3.7/json/decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
@jesopo jesopo added the bug label Mar 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant