-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
client.character.create_new_conversation stopped returning the promise #10
Comments
can you give me a result of the log, please? and your code |
I'm using it with a telegram bot that has an in-built timeout module (p-timeout), so it waits for the promise to resolve and throws an error if it is still pending after a set amound of time. So the error i'm getting is The function i'm using first awaits for As i've mentioned, this used to happen randomly with other c.ai requests as well, but now it happens every time with this particular function. Also it should be noted that the function does work, I just can't await for it. |
hmmmm... maybe it's my |
btw, are you set with_greeting parameter to |
i don't know for the op, but for myself, |
ohhhh... |
I just found out that it's my |
i am an idiot 😂 thanks for reporting this issue and sorry if my grammar is bad. 🙏 |
okay done. i've just update to the NPM as well. |
Okay, I'm a little bit late but as for your question, yes, It was set to true. Not that it matters now that you've fixed it. |
Hmm...
|
If you set greeting to true, then it has 2 array If you set greeting to false, it not returns array. Maybe you can try console.log() |
console.log() change nothing. |
Hmmmmmm... Did you connect to character? @matsukky and @wang-yuwen |
oh, I'm such an idiot 😂 thanks for letting me out. |
I will update the NPM Package later because I'm adding some character.ai API now. |
For now, you can clone, get the |
For some reason it just stopped returning its promise. The function does work, but I'm using it with an await and it fails to return the promise. It all started just yesterday. Any ideas why?
I used to get unresolved promises before, with other requests but not every time, more like 1 in 100 requests, randomly.
I think it's something to do with c.ai itself but can't seem to find what causes it. Can you look into it?
The text was updated successfully, but these errors were encountered: