Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More informative error response body #298

Open
SimenRokaas opened this issue Aug 28, 2023 · 0 comments
Open

More informative error response body #298

SimenRokaas opened this issue Aug 28, 2023 · 0 comments
Labels
kind/feature-request New feature or request org/dsb Issues relevant for Direktoratet for samfunnssikkerhet og beredskap

Comments

@SimenRokaas
Copy link

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

@SimenRokaas SimenRokaas added the kind/feature-request New feature or request label Aug 28, 2023
@tjololo tjololo added org/ssb Issues relevant for Statistisk sentralbyrå. org/dsb Issues relevant for Direktoratet for samfunnssikkerhet og beredskap and removed org/ssb Issues relevant for Statistisk sentralbyrå. labels Aug 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature-request New feature or request org/dsb Issues relevant for Direktoratet for samfunnssikkerhet og beredskap
Projects
Status: No status
Development

No branches or pull requests

2 participants