Deserialization policy consider 304 as an error leading to a telemetry exception being recorded #32454
Open
1 of 6 tasks
Labels
Client
This issue points to a problem in the data-plane of the library.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
Monitor - Exporter
Monitor OpenTelemetry Exporter
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Describe the bug
The deserialization policy implemented in @azure/core-client considers any request with a status code not between 200 and 300 as an error which seems to be a good option. However, due to this behaviour each time an API answers 304 we are seing in Application Insights an exception which is not an expected behavior as a 304 is clearly expected
To Reproduce
ifNoneMatch
in order to receive 304Expected behavior
HTTP calls with status code equals to 304 should not generate a telemetry exception
Screenshots
Additional context
N/A
The text was updated successfully, but these errors were encountered: