[/i]Seems like there might be a bug with the function `ApiFrontendCustomerUploadAvatarPostWithHttpInfo`
line 5942:
if (body != null && body.GetType() != typeof(byte[]))
{
localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
}
else
{
localVarPostBody = body; // byte array
}
When checking the type of body if the request is of type byte[] it was getting passed as byte[] but the api request does not accept that as a valid request error that keeps popping up is
[i]>"System.Text.DecoderFallbackException: Unable to translate bytes [FF] at index 0 from specified code page to Unicode.\r\n at System.Text.DecoderExceptionFallbackBuffer.Throw(Byte[] bytesUnknown, Int32 index)\r\n at System.Text.DecoderExceptionFallbackBuffer.Fallback(Byte[] ....
If I changed the condition on line 5942 to
if (body != null && body.GetType() == typeof(byte[]))
The request comes back valid and results is shown on the storefront as expected.
What are your thoughts? is it a bug ? or am I doing something wrong?