Skip to content

[Bug]: PHP Fatal error: Uncaught TypeError #549

Open
@smazur

Description

@smazur

Description

PHP Fatal error: Uncaught TypeError: OpenAI\Responses\Threads\Messages\ThreadMessageResponse::from(): Argument #1 ($attributes) must be of type array, string given, called in .../vendor/openai-php/client/src/Resources/ThreadsMessages.php on line 32

Steps To Reproduce

This error happens irregularly during following call chain:

$client->threads()->messages()->create( $thread_id, $message );

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`.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions