Skip to content

Conversation

@alukach
Copy link
Member

@alukach alukach commented Jul 25, 2025

Added logging for JSON parsing errors in the JsonResponseMiddleware. If an invalid JSON is received, a 502 response is returned with an error message, improving error visibility and response management.

related to #72

TODO

  • tests

@alukach alukach force-pushed the main branch 3 times, most recently from bdf9405 to 8ed08bc Compare August 9, 2025 06:21
@alukach alukach marked this pull request as ready for review September 3, 2025 04:12
Added logging for JSON parsing errors in the JsonResponseMiddleware. If an invalid JSON is received, a 502 response is returned with an error message, improving error visibility and response management.
This test verifies that the middleware correctly returns a 502 error when invalid JSON is received from an upstream server, ensuring robust error handling in the application.
@alukach alukach force-pushed the fix/throw-502-on-failed-json-decoding branch from 71cd7fc to e222c9a Compare September 3, 2025 04:15
@alukach alukach merged commit daf5d09 into main Sep 3, 2025
3 checks passed
@alukach alukach deleted the fix/throw-502-on-failed-json-decoding branch September 3, 2025 04:16
alukach pushed a commit that referenced this pull request Sep 3, 2025
🤖 I have created a release *beep* *boop*
---


##
[0.9.0](v0.8.0...v0.9.0)
(2025-09-03)


### Features

* make use of Server-Timing header
([c894026](c894026)),
closes
[#69](#69)
* remove applied filters on response links
([#67](#67))
([2b2b224](2b2b224)),
closes
[#64](#64)
* enhance JSON parsing error handling
([#73](#73))
([daf5d09](daf5d09)),
closes
[#72](#72)

### Bug Fixes

* retain proxy headers when behind proxy
([#88](#88))
([74780f0](74780f0))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: ds-release-bot[bot] <116609932+ds-release-bot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant