-
Notifications
You must be signed in to change notification settings - Fork 821
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
Getting Unhandled Rejection
event, randomly.
#959
Comments
Hi can you share an example script? (it doesn't have to reliably reproduce this issue as you've mentioned you're only seeing it sporadically) |
@RobertCraigie |
I encountered this error randomly after some retries on the same thread. For example, if I post a message on a thread and receive the error message Final run has not been received, I retry sequentially 2 times and then stop resending. Meanwhile, I receive this error message in my Global error handler with the same thread ID.
|
Confirm this is a Node library issue and not an underlying OpenAI API issue
Describe the bug
A Node.js library is throwing an unhandled promise rejection error due to improper error handling.
To Reproduce
How to reproduce this issue:
Ideally, this error should be handled with stream.on('error', myCustomErrorHandler).
Code snippets
No response
OS
macOs
Node version
v18.19.0
Library version
openai 4.52.7
The text was updated successfully, but these errors were encountered: