Skip to content

[8.18](backport #5069) Include base error for json decode error responses#5084

Merged
michel-laterman merged 1 commit into8.18from
mergify/bp/8.18/pr-5069
Jul 4, 2025
Merged

[8.18](backport #5069) Include base error for json decode error responses#5084
michel-laterman merged 1 commit into8.18from
mergify/bp/8.18/pr-5069

Conversation

@mergify
Copy link
Copy Markdown
Contributor

@mergify mergify bot commented Jul 3, 2025

What is the problem this PR solves?

There is no information on why request bodies fail to decode as JSON

How does this PR solve the problem?

Include the base json decode error as part of the response.

Design Checklist

  • I have ensured my design is stateless and will work when multiple fleet-server instances are behind a load balancer.
  • I have or intend to scale test my changes, ensuring it will work reliably with 100K+ agents connected.
  • I have included fail safe mechanisms to limit the load on fleet-server: rate limiting, circuit breakers, caching, load shedding, etc.

Checklist

  • 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/fragments using the changelog tool

This is an automatic backport of pull request #5069 done by [Mergify](https://mergify.com).

* Include base error for json decode error responses

(cherry picked from commit 966c4f8)
@mergify mergify bot added the backport label Jul 3, 2025
@mergify mergify bot requested a review from a team as a code owner July 3, 2025 16:28
@mergify mergify bot requested review from blakerouse and ycombinator July 3, 2025 16:28
@mergify mergify bot added the backport label Jul 3, 2025
@prodsecmachine
Copy link
Copy Markdown

prodsecmachine commented Jul 3, 2025

🎉 Snyk checks have passed. No issues have been found so far.

security/snyk check is complete. No issues have been found. (View Details)

license/snyk check is complete. No issues have been found. (View Details)

@github-actions github-actions bot added bug Something isn't working Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team labels Jul 3, 2025
@elastic-sonarqube
Copy link
Copy Markdown

@michel-laterman michel-laterman merged commit 3a0fc3b into 8.18 Jul 4, 2025
8 of 9 checks passed
@michel-laterman michel-laterman deleted the mergify/bp/8.18/pr-5069 branch July 4, 2025 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport bug Something isn't working 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.

2 participants