realcoloride / node_characterai

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

Guest eval fetching no longer working after update #128

Closed rishavpaul95 closed 10 months ago

rishavpaul95 commented 10 months ago

resource: the server responded with a status of 524 ()

realcoloride commented 10 months ago

Is your package up to date?

rishavpaul95 commented 10 months ago

Yes.

const CharacterAI = require("node_characterai");
const characterAI = new CharacterAI();

(async () => {
  // Authenticating as a guest (use `.authenticateWithToken()` to use an account)
  await characterAI.authenticateAsGuest();

  // Place your character's id here
  const characterId = "8_1NyR8w1dOXmI1uWaieQcd147hecbdIK7CeEAIrdJw";

  const chat = await characterAI.createOrContinueChat(characterId);

  // Send a message
  const response = await chat.sendAndAwaitResponse("Hello discord mod!", true);

  console.log(response);
  // Use `response.text` to use it as a string
})();

This test no longer gives a response

rishavpaul95 commented 10 months ago

It seems characterAI guest responses are down. I am sorry for posting without checking.

realcoloride commented 10 months ago

I will try the sample and investigate. In the meantime, could you try via using a token?

rishavpaul95 commented 10 months ago

Yes. Tokens are working. CharacterAI site is itself down. Servers are down on their end for guest users

realcoloride commented 10 months ago

After testing, it seems like the chatting (/streaming/) CharacterAI for guests is down. In the meantime, I recommend you use an access token or wait for it to become online again.

rishavpaul95 commented 10 months ago

Thank you!

realcoloride commented 10 months ago

Update: the service seems to be back up.