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

avoid log message pointing to http error in case the endpoint cannot … #4343

Conversation

marcusholl
Copy link
Member

…be retrieved from a 200 response body

We have cases where the response body is empty but we still get an http-200 response code (side thread: why is that, should be investigated on the server-level).

The log message we get is confusing: Error: Unable to get integration flow service endpoint, Response Status code: 200.

With that change there will be a more precise message Cannot retrieve integrationFlowServiceEndpoint from response: %q where q is the quoted response.

Regarding the empty response which is currently shown with the error message I'm not sure. There are cases where a response can only be read once (depends on the http client). So maybe reading the response a second time (... as it was up to now) might be part of the problem.

Changes

  • Tests
  • Documentation

@marcusholl marcusholl requested a review from a team as a code owner May 3, 2023 05:59
@marcusholl marcusholl requested review from o-liver and mayurmohan May 3, 2023 06:00
@sonarqubecloud
Copy link

sonarqubecloud bot commented May 3, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@marcusholl
Copy link
Member Author

@alxsap did the same already here #4341

@marcusholl marcusholl closed this May 3, 2023
@alxsap alxsap deleted the marcusholl/pr/loggingInsideIntegrationArtifactGetServiceEndpoint branch May 3, 2023 06:41
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

Successfully merging this pull request may close these issues.

1 participant