I have an backend application that is running in docker (Azure container instance ) , the API Endpoint takes around 13 to 15 minutes to send a response.
When i send the request directly to the docker endpoint it works properly , but when i add that endpoint to API management and try the same and call the endpoint i receive an error after 5 minutes as below:
{
"statusCode": 500,
"message": "Internal server error",
"activityId": "6265bfa9-73b7-4110-b345-8f698c5c8b2b"
}
500Internal Server Error
5 m 2.10 s
239 B
The above one was from Postman .
I have added timeout in the outbound policy section as mentioned below, the calls waits till the timeout mentioned and then fails with same 500 Internal Server Error .
Even if the backend application has completed the execution and sent the response, I don't get the actual response that the endpoint has sent.
<backend>
<forward-request timeout="900"/>
</backend>