openai-php / client

⚡️ OpenAI PHP is a supercharged community-maintained PHP API client that allows you to interact with OpenAI API.
MIT License
4.75k stars 491 forks source link

UnserializableResponse #148

Closed KevinFairbanks closed 1 year ago

KevinFairbanks commented 1 year ago

Since upgrading to v0.5.3, have been seeing this exception very often. I rerun the request and it works fine. The error comes randomly without any consistent trigger.

OpenAI\Exceptions\UnserializableResponse(code: 0)

Syntax error {"exception":"[object] (OpenAI\Exceptions\UnserializableResponse(code: 0): Syntax error at C:\development\scc\vendor\openai-php\client\src\Transporters\HttpTransporter.php:62)

Let me know if I can provide anything additional to help troubleshoot.

ondraasek commented 1 year ago

sometimes getting the same. especially with gpt4-0613

KevinFairbanks commented 1 year ago

Issue resolve on its own after 3 days, must have been an issue with OpenAI