Pratik
Pratik

Reputation: 213

Azure API management gives 200 [not sent in full (see exception telemetries)]

We have a few APIs that are being long polled through Azure API Management. For some reason, we are receiving a response of 200 [not sent in full (see exception telemetries)] and then a System.Exception: A task was canceled. exception in App Insights.

Taking a look at the server app service telemetry, the requests were completed without any exception there.

Can anyone help me figure out what this status response means and why are we getting this exception?

enter image description here

Upvotes: 2

Views: 1583

Answers (1)

Vitaliy Kurokhtin
Vitaliy Kurokhtin

Reputation: 7825

These errors mean that APIM started to send response to client, sent status code and description, and some portion of headers and body. These traces must be accompanied by exception telemetry as response code suggests. Depending on what you see there it may be:

  • Client connectivity error - client terminated connection before response was sent in full
  • Backend connectivity error - backend terminated connection before providing full response

The reasons for both may vary a lot, but given small duration I'd suspect that it's client closing connection. One of the reasons for this, for example, is if this API is used from browser it is normal for browser to terminate connection and abort reading response if user navigates away from page that made the call.

Upvotes: 3

Related Questions