-
-
Notifications
You must be signed in to change notification settings - Fork 607
[Bug]: PHP Fatal error: Uncaught TypeError #549
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
Comments
Yeah generally at the moment if the response isn't JSON - the handling isn't the best. This has manifested differently depending on the call. Some others related: |
Also #478 |
In my case this exact issue occurs when |
We have a fix in progress to rework a bit of the exception handling for that use-case. Trying to gather more samples in the field of the odd OpenAI issues to confirm: #553 |
Thanks! This has been bugging us for a few months, and even more in recent weeks |
Description
Steps To Reproduce
This error happens irregularly during following call chain:
OpenAI PHP Client Version
v0.10.3
PHP Version
8.2.16
Notes
After error_log debugging I found that API replied with 'Bad Gateway' response and 'Content-Type: text/plain`.
The text was updated successfully, but these errors were encountered: