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

New error? simplejson.errors.JSONDecodeError #134

Closed
bluusun opened this issue Apr 3, 2024 · 0 comments
Closed

New error? simplejson.errors.JSONDecodeError #134

bluusun opened this issue Apr 3, 2024 · 0 comments

Comments

@bluusun
Copy link

bluusun commented Apr 3, 2024

client = PoeApi(cookie=tokens,auto_proxy=False)

File "/home/ubuntu/.local/lib/python3.8/site-packages/poe_api_wrapper/api.py", line 58, in init
self.connect_ws()
File "/home/ubuntu/.local/lib/python3.8/site-packages/poe_api_wrapper/api.py", line 158, in connect_ws
self.get_channel_settings()
File "/home/ubuntu/.local/lib/python3.8/site-packages/poe_api_wrapper/api.py", line 118, in get_channel_settings
response_json = self.client.get(f'{self.BASE_URL}/poe_api/settings', headers=self.HEADERS, timeout=30).json()
File "/home/ubuntu/.local/lib/python3.8/site-packages/requests/models.py", line 910, in json
return complexjson.loads(self.text, **kwargs)
File "/home/ubuntu/.local/lib/python3.8/site-packages/simplejson/init.py", line 525, in loads
return _default_decoder.decode(s)
File "/home/ubuntu/.local/lib/python3.8/site-packages/simplejson/decoder.py", line 370, in decode
obj, end = self.raw_decode(s)
File "/home/ubuntu/.local/lib/python3.8/site-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)

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