Skip to content

Exceptions should have more detailed information, like what was the RESPONSE text. #402

@pavelthq

Description

@pavelthq

throw new UnserializableResponse($jsonException);

JsonException: Syntax error in /var/www/html/chatgpt/vendor/openai-php/client/src/Transporters/HttpTransporter.php:61

Next OpenAI\Exceptions\UnserializableResponse: Syntax error in /var/www/html/chatgpt/vendor/openai-php/client/src/Transporters/HttpTransporter.php:63
Stack trace:
#0 /var/www/html/chatgpt/vendor/openai-php/client/src/Resources/Chat.php(33): OpenAI\Transporters\HttpTransporter->requestObject()
#1 /var/www/html/chatgpt/app/Jobs/RequestItemGpt.php(159): OpenAI\Resources\Chat->create()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions