Closed FlimzYT closed 7 months ago
Ever since the new character ai website update I cannot use this library anymore and I get this error:
Exception has occurred: JSONDecodeError Expecting value: line 1 column 1 (char 0) StopIteration: 0
During handling of the above exception, another exception occurred:
File "D:\Python\Instagram Bot\main.py", line 17, in chat = client.chat.get_chat(char) ^^^^^^^^^^^^^^^^^^^^^^^^^^ json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
They started using cloudflare to fight against bots. Simple fetching won't work anymore.
Fixed in the new version
Ever since the new character ai website update I cannot use this library anymore and I get this error:
Exception has occurred: JSONDecodeError Expecting value: line 1 column 1 (char 0) StopIteration: 0
During handling of the above exception, another exception occurred:
File "D:\Python\Instagram Bot\main.py", line 17, in
chat = client.chat.get_chat(char)
^^^^^^^^^^^^^^^^^^^^^^^^^^
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)