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

Dump artifact uri response body when fail decoding #40563

Merged

Conversation

pchila
Copy link
Member

@pchila pchila commented Aug 20, 2024

Proposed commit message

Add http response validation and dumpt the response in case of error when handling artifact URI response.
This should allow for easier investigation and debugging in case of wrong responses from artifacts-api.elastic.co

Checklist

  • My code follows the style guidelines of this project
  • [ ] I have commented my code, particularly in hard-to-understand areas
  • [ ] I have made corresponding changes to the documentation
  • [ ] I have made corresponding change to the default configuration files
  • I have added tests that prove my fix is effective or that my feature works
  • [ ] I have added an entry in CHANGELOG.next.asciidoc or CHANGELOG-developer.next.asciidoc.

Disruptive User Impact

Author's Checklist

  • [ ]

How to test this PR locally

Related issues

Use cases

Screenshots

Logs

@pchila pchila added enhancement Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team labels Aug 20, 2024
@pchila pchila requested a review from a team as a code owner August 20, 2024 11:01
@pchila pchila requested review from blakerouse and andrzej-stencel and removed request for a team August 20, 2024 11:01
@elasticmachine
Copy link
Collaborator

Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane)

@botelastic botelastic bot added needs_team Indicates that the issue/PR needs a Team:* label and removed needs_team Indicates that the issue/PR needs a Team:* label labels Aug 20, 2024
@mergify mergify bot assigned pchila Aug 20, 2024
@pchila pchila force-pushed the dump-artifactURI-response-body-when-fail-decoding branch from 4886518 to 84f3d4c Compare August 27, 2024 13:44
Copy link
Contributor

@blakerouse blakerouse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

@pchila pchila merged commit bc2cbf4 into elastic:7.17 Sep 4, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants