Skip to content

json.decoder.JSONDecodeError  #1

Description

@3Thiago

Hi guys, when I run python3.6 bot.py, an error occurs. the conf.json file has been configured.

Traceback (most recent call last):
File "bot.py", line 3, in
from utils import output, parsing, checks, mysql_module, g
File "/root/TipBot_Github/Helix-tip-bot/utils/output.py", line 8, in
config = parsing.parse_json('config.json')["logging"]
File "/root/TipBot_Github/Helix-tip-bot/utils/parsing.py", line 13, in parse_json
contents = json.loads(content)
File "/usr/lib/python3.6/json/init.py", line 354, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3.6/json/decoder.py", line 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.6/json/decoder.py", line 357, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 30 column 22 (char 836)

Can someone help me? I'm looking forward to testing this bot.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions