kramcat/CharacterAI

json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Closed this issue · 2 comments

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