fix: add information about target response into error message if inte… (#8281)

# Which Problems Are Solved

Execution responses with HTTP StatusCode not equal to 200 interrupt the
client request silently.

# How the Problems Are Solved

Adds information about the recieved StatusCode and Body into the error
if StatusCode not 200.

# Additional Context

Closes #8177

---------

Co-authored-by: Elio Bischof <elio@zitadel.com>
Co-authored-by: Livio Spring <livio.a@gmail.com>
This commit is contained in:
Stefan Benz
2024-08-16 11:26:15 +02:00
committed by GitHub
parent 11d01b9b35
commit 83c78a470c
21 changed files with 400 additions and 6 deletions

View File

@@ -564,6 +564,7 @@ Errors:
NotFound: Execution not found
IncludeNotFound: Include not found
NoTargets: No targets defined
Failed: Execution failed
ResponseIsNotValidJSON: Response is not valid JSON
UserSchema:
NotEnabled: Feature "User Schema" is not enabled
@@ -594,7 +595,6 @@ Errors:
NoActive: No active web key found
NotFound: Web key not found
AggregateTypes:
action: Action
instance: Instance