kramcat / CharacterAI

Unofficial Python API for character.ai
https://docs.kram.cat
MIT License
456 stars 67 forks source link

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

Closed FlimzYT closed 7 months ago

FlimzYT commented 8 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)

SeoulSKY commented 8 months ago

They started using cloudflare to fight against bots. Simple fetching won't work anymore.

kramcat commented 7 months ago

Fixed in the new version