Open ChristopherErbs opened 3 months ago
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @dubiety @jecmenicanikola.
@ChristopherErbs , thank you for reporting this issue. We'll take a look and try to fix the problem soon!
Library name and version
Azure Maps Routing API Version: 1.0
Describe the bug
When submitting a Post Route Matrix Request I encountered a deserialization issue with the RouteMatrixResult API when a distance to one of the destinations cannot be resolved. Specifically, the API returns a serialized RouteMatrixResult containing an array of RouteMatrixes. Each RouteMatrix holds a RouteMatrixResultResponse, which in turn contains a RouteLegSummary.
However, when the distance to a destination cannot be resolved, the response field in the RouteMatrixResultResponse is returned as an error string instead of a null value for the RouteMatrixResultResponse object. This causes a deserialization error on the client side, which currently requires manual handling.
Example json:
n the example above, the first entry in the matrix array returns an error string under the response field, which causes a deserialization failure on the client side.
Expected behavior
The response field should return a null value or an appropriately structured error object instead of a plain error string when a distance cannot be resolved. This would prevent deserialization errors and allow the client to handle errors more gracefully.
Actual behavior
Deserialization fails
Reproduction Steps
Steps to Reproduce:
Environment
.NET6, VS Version 17.10.5