Skip to content
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

The new version 2.2.0 seems to be not working #25

Open
savokiss opened this issue Feb 28, 2023 · 11 comments
Open

The new version 2.2.0 seems to be not working #25

savokiss opened this issue Feb 28, 2023 · 11 comments

Comments

@savokiss
Copy link

The queue may be stucked, and can't be released.

It always reply You are #{n} in line.

@RainEggplant
Copy link
Owner

Is this due to network issues (the API is not responding)? Does switching to the previous version resolve the problem?

@savokiss
Copy link
Author

Yep, I revert the branch and it's OK now.
Note that I use the unofficial mode.
While the ChatGPT website is ok, only the telegram respond seems stucked.

@RainEggplant
Copy link
Owner

It's weird... Mine seems to be working fine. Can you provide more details on how to reproduce this problem?

@savokiss
Copy link
Author

Maybe because I've add a fetch polyfill? I am using Node 16 and had to polyfill that.
I'll check it later and provide some more detail.
Thanks for your attention~ 😄

@soyelmismo
Copy link

does the queue is reset when /reset or /reload are triggered? i got it stuck and after reloading the session it still adding to queue

@RainEggplant
Copy link
Owner

does the queue is reset when /reset or /reload are triggered?

No, /reset and /reload will not reset the queue. The requests in the queue won't be affected. /reset only starts a new conversation for the upcoming messages, and /reload should only be used for the browser API.

i got it stuck and after reloading the session it still adding to queue

What's the version of node you're using? In what circumstances will it get stuck?

@soyelmismo
Copy link

idk how it happens, maybe it dont perceive a timeout from the api and it just stop receiving the prompt output and the queue gets the bug

Screenshot_20230301-111431_Nagram

@RainEggplant
Copy link
Owner

Sometimes the API does not respond. Will add a timeout mechanism to fix this.

@savokiss
Copy link
Author

savokiss commented Mar 3, 2023

Sometimes the API does not respond. Will add a timeout mechanism to fix this.

Yep, May be the network issue. May not be the Node.js version problem.

@Vadko
Copy link
Collaborator

Vadko commented Mar 3, 2023

For everyone who is facing issues with order being hanged right now

  1. This is mostly happening on unofficial/browser api. Official api doesnt have this issue
  2. The only way to fix that is to reject hanged requests. That could be done by adding timeoutMs param to the _api.sendMessage (I recommend 30s)

However, we are not currently satisfied with timeout mechanism on chatgpt-api side since it doesnt count onProgress trigger as request succeed, instead, it just waits for stream to close.

I'm currently working on PR for chatgpt-api to add this mechanism and after that fix will be added there. With other nasty feature :D

So, please, use timeoutMs for api as temporary solution, there will be fix soon.

@RainEggplant
Copy link
Owner

I've added a simple timeout mechanism in #36 as an initial fix. Still waiting for transitive-bullshit/agentic#444 to be merged.

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

No branches or pull requests

4 participants