More informative error response body #298
Labels
kind/feature-request
New feature or request
org/dsb
Issues relevant for Direktoratet for samfunnssikkerhet og beredskap
Description
When an error occurs in Altinn API usage, the response body we see is often lacking the actual cause. This forces us to go into the azure portal, look up application insights, write/open a query, run the query so we get the actual cause.
It would be really nice if the
outerMessage
could be added to the response body when an error occurs. This field often contains the real cause of the failure.Example of current response body:
Instantiation of appId dsb/siv-1005-svar-rek failed for party 51397781
This says nothing about what causes instantiation to fail. Inspection shows that the
outerMessage
contains the following for the example above:Could not prefill, a source value was not set for target: PlisMeta.PlisId
.If this information was included in the response body, we would not have to go into application insights at all.
Example of a more informative response body for the above example:
Instantiation of appId dsb/siv-1005-svar-rek failed for party 51397781. Details: Could not prefill, a source value was not set for target: PlisMeta.PlisId
Additional Information
No response
The text was updated successfully, but these errors were encountered: