Skip to content

Failure to deserialize conversation #400

@seifane-wise

Description

@seifane-wise

Hello,

It seems that managing conversations results in a failure (exception thrown) when trying to parse the conversation body while the request succeeds.

This is triggered on my end by simply managing the conversation with an assignment body.

 $this->client->conversations->manage(new ManageConversationPartsRequest(
                [
                    'conversationId' => $conversationId,
                    'body' => ConversationsManageRequestBody::assignment(new AssignConversationRequest(
                        [
                            'type' => AssignConversationRequestType::Admin->value,
                            'adminId' => $adminId,
                            'assigneeId' => $assigneeId,
                        ]
                    ))
                ]
            ));
Failed to deserialize response: Cannot deserialize value of type boolean with any of the union types: string | integer | datetime | Intercom\\Types\\CustomObjectInstanceList

at /code/vendor/intercom/intercom-php/src/Conversations/ConversationsClient.php:595

On 5.0.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions