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

Store Api errors in custom resource status #1

Open
Javatar81 opened this issue May 13, 2024 · 2 comments
Open

Store Api errors in custom resource status #1

Javatar81 opened this issue May 13, 2024 · 2 comments

Comments

@Javatar81
Copy link
Owner

No description provided.

@Javatar81
Copy link
Owner Author

Problem to read unexpected status codes microsoft/kiota#3744

@Javatar81
Copy link
Owner Author

Store the error into additional data and read it later in the reconciler.

if(resp.statusCode() >= 400) {
       desired.getAdditionalData().put("error", resp.bodyAsString());
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant