realcoloride/node_characterai

Client.createOrContinueChat() doesn't return anything.

Closed this issue · 3 comments

Im using version 1.2.5 or later but This function doesn't seems to return any function after authentication. I waited for several minutes assuming the process is just slower than expected but it seems stuck in it.

Here's my code below, I tried to check if it really returns anything using console.dir() but my terminal just ended on the same output.
Screenshot_20240222-104756_1
Screenshot_20240222-104729_1

Hello, why would you use console.dir?

Hello, why would you use console.dir?

I just want to check if it really returns something, but it doesn't change the fact that my process ended only at authentication phase.

Hello again,

Make sure you dont create multiple characterAI clients for no reason. You can create multiple chats from one client.
Aswell, use console.log instead of console.dir.

If errors still happen, try to set node_characterai in headful mode, and investigate what the browser is showing up, if something is blocking your way.