Skip to content
This repository has been archived by the owner on Dec 21, 2022. It is now read-only.

error on authentication #2

Open
skyrina opened this issue Dec 12, 2022 · 1 comment
Open

error on authentication #2

skyrina opened this issue Dec 12, 2022 · 1 comment

Comments

@skyrina
Copy link

skyrina commented Dec 12, 2022

trying to use the character.ai api with the example script, i get an error. the access token i've provided is correct.
seems that cloudflare is filtering this library's requests out.

undefined:1
error code: 1020
^

SyntaxError: Unexpected token 'e', "error code: 1020" is not valid JSON
    at JSON.parse (<anonymous>)
    at CharacterAI.<anonymous> (/home/user/source/spamton/dist/Client.js:63:43)
    at step (/home/user/source/spamton/dist/Client.js:44:23)
    at Object.next (/home/user/source/spamton/dist/Client.js:25:53)
    at fulfilled (/home/user/source/spamton/dist/Client.js:16:58)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Node.js v19.2.0
@sum117
Copy link
Contributor

sum117 commented Dec 13, 2022

We are aware of the issue and will try to fix this ASAP.

It has to do with a recent update on their backend, even our insomnia requests are failing.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants