You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In some error cases, SendWithUs returns a single string with a text/html header.
One such case is when the data payload is too big (over 120 KB). The response is:
Content-Type: text/htmlemail_data must not exceed 128 kB. Got 143.04 kB
In these cases, the client assumes a JSON body and attempts to deserialize into a JToken. But that fails with an exception:
[System.Net.Http.UnsupportedMediaTypeException: No MediaTypeFormatter is available to read an object of type 'JToken' from content with media type 'text/html'.]
at System.Net.Http.HttpContentExtensions.ReadAsAsyncT(HttpContent content, Type type, IEnumerable`1 formatters, IFormatterLogger formatterLogger, CancellationToken cancellationToken)
The text was updated successfully, but these errors were encountered:
In some error cases, SendWithUs returns a single string with a
text/html
header.One such case is when the data payload is too big (over 120 KB). The response is:
In these cases, the client assumes a JSON body and attempts to deserialize into a
JToken
. But that fails with an exception:The text was updated successfully, but these errors were encountered: