Closed SeoulSKY closed 4 months ago
Changing authenticateAsGuest() with authenticateWithToken() fixes the problem. I believe there is a problem in authenticateAsGuest()
Hello,
this is an intended error and nothing is wrong. Force login means you've reached the quota of messages. Sadly it looks like characterAI has restricted guests users.
@realcoloride restricted? Means we can no longer authenticate as guests?
Exactly. Try opening CharacterAI in an incognito tab and see how they restrict you from the first message.
Wow, character ai seriously removed guest authentication system, it's not a big issue though
@realcoloride It's odd that I got this error because I ran the code for the first time. Anyway, if authenticateAsGuest() no longer works, I think it would be better if you modify the example code in README.md because people might think your library no longer works or at least throw a custom error saying you used all quotas. Thank you!
They do these kinds of unprevented things here and then sometimes. Sorry.
They might restore it soon, though. I will not change the README.md because it happened before and they restored the guest logins shortly. So just in case, if they (any developer) get the problem, they shall see this issue or open an issue and I will redirect them.
For now, please use authenticateWithToken
, sorry for the incovenience!
least throw a custom error that the function no longer works
I will not make that but I will definitely make an exception and throw an error.
sorry for the incovenience!
No worries. I appreciate your hard work, and I totally understand that this kind of problem might happen frequently with using their unofficial API :).
Hello, I have commited https://github.com/realcoloride/node_characterai/commit/144f2bb9b5cabfa514e0c9b1b0c4520223e1d0d1 and experimental version 1.2.7
has been pushed. Please let me know if you get a proper error now.
Please let me know if you get a proper error now.
It now throws a proper error with the example code in README.md :)
Error: Too many messages! (this might be because you use a guest account or that characterai has restricted messages for guests.)
at new Reply (/Users/swkim7519/Desktop/SoruSora/sorusora-ai/node_modules/node_characterai/message.js:119:48)
at Chat.sendAndAwaitResponse (/Users/swkim7519/Desktop/SoruSora/sorusora-ai/node_modules/node_characterai/chat.js:68:24)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
Version: 1.2.5
I tried to run the code in README.md
But I get the following exception
When I debug the
Chat.sendAndAwaitResponse()
, therequest.code
is200
and theresponse
object is the following:So, the issue is that the
response.replies
isundefined
and it tries to getlength
properly fromundefined