Jericho / CakeMail.RestClient

.NET wrapper for the CakeMail API
MIT License
9 stars 3 forks source link

Error converting value "received" to type 'CakeMail.RestClient.Models.LogType' #52

Closed MinaMessi closed 5 years ago

MinaMessi commented 5 years ago

I got an issue while trying to call CakeMailApi.Mailings.GetLogsAsync.

"Requested value 'received' was not found. [JsonSerializationException: Error converting value "received" to type 'CakeMail.RestClient.Models.LogType'. Path 'data.logs[2].action', line 1, position 1121.]"

It seems that there is a response value which is not listed in the enum LogType. So we need to add this missing value into the enum.

exception

Jericho commented 5 years ago

This is interesting. I wonder if this is a new log type CakeMail recently added.

Anyway, I'll add it to the enum to avoid this exception.

MinaMessi commented 5 years ago

Thank you for looking in to this. I'm willing to contribute to this issue myself, as I understand you may be busy with other projects.

MinaMessi commented 5 years ago

This is interesting. I wonder if this is a new log type CakeMail recently added.

Anyway, I'll add it to the enum to avoid this exception.

Ok thanks!

Jericho commented 5 years ago

pushing v0.8.3 to NuGet. Will be available shortly.