Azure Api Management throws System.Exception: Content length mismatch

Clemens Tan 1 Reputation point
2021-08-12T12:15:17.9+00:00

Hello,

an Azure Function is responding to an HTTP PUT request an 400 error with a body which contains some error text. When calling the Azure Function HTTP directly from the Azure function, the HTTP trigger responses correctly. If called through the ApiManagement, the API Management discards the body and throws
System.Exception: Content length mismatch

I can't figure out, what is going wrong here. Same with 422 response code. With response code 200, the body is sent correclty.

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
1,809 questions
{count} votes