snowby666 / poe-api-wrapper

👾 A Python API wrapper for Poe.com. With this, you will have free access to GPT-4, Claude, Llama, Gemini, Mistral and more! 🚀
https://pypi.org/project/poe-api-wrapper/
GNU General Public License v3.0
677 stars 81 forks source link

New error? simplejson.errors.JSONDecodeError #134

Closed bluusun closed 2 weeks ago

bluusun commented 3 months ago
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)