realcoloride / node_characterai

Unofficial Character AI wrapper for node.
https://beta.character.ai/
341 stars 72 forks source link

Client.createOrContinueChat() doesn't return anything. #152

Closed Hadestia closed 4 months ago

Hadestia commented 6 months ago

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

realcoloride commented 6 months ago

Hello, why would you use console.dir?

Hadestia commented 6 months ago

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.

realcoloride commented 6 months ago

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.