Skip to content

Image data is not parsing in api response #41

Description

@NancyKashyap-Stride

When an agent sent image in chat, app is not getting correct event details. Also, library is having decoding issue.
Received data: {"events":[{"event":"chat_session_file","file_id":"c58eb82c-5568-46ca-b258-0ab4d5fda21b","file_name":"Chicken.jpeg","file_type":"image","msg_id":"6","party_id":"BDCB07D3-D18B-468E-94F7-5FCE58D6CC6B","timestamp":"1622177975"}]}
[ContactCenterEventsContainerDto.swift init(from:):43] Failed to parse unknown message from server: dataCorrupted(Swift.DecodingError.Context(codingPath: [_JSONKey(stringValue: "Index 0", intValue: 0), CodingKeys(stringValue: "event", intValue: nil)], debugDescription: "Cannot initialize ContactCenterEventTypeDto from invalid String value chat_session_file", underlyingError: nil))

Please find attached logs:
no_image_chat.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    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