csharp-rest-api
csharp-rest-api copied to clipboard
Deserialization issue when retrieving event messages
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
- Start a conversation
- Send a message of type
eventwith some text content (e.g. when adding a note from a Flow) - Call
ListConversationMessagesfrom SDK client for that conversation
Excepted
- Event message is retrieved successfully and content can be read