csharp-rest-api icon indicating copy to clipboard operation
csharp-rest-api copied to clipboard

Deserialization issue when retrieving event messages

Open NamalD opened this issue 5 years ago • 0 comments

The client throws an exception when attempting to retrieve a conversation message of type event. When inspecting the stack trace, this error message appears:

Error converting value "event" to type 'MessageBird.Objects.Conversations.ContentType'. Path 'items[0].type',

On initial inspection, issue seems to be the lack of an Event enum member in MessageBird.Objects.Conversations.ContentType.

Steps to reproduce

  1. Start a conversation
  2. Send a message of type event with some text content (e.g. when adding a note from a Flow)
  3. Call ListConversationMessages from SDK client for that conversation

Excepted

  • Event message is retrieved successfully and content can be read

NamalD avatar Sep 14 '20 12:09 NamalD