Skip to content

Conversation

@chadicus
Copy link
Contributor

@chadicus chadicus commented Jan 9, 2025

What does this PR do?

This pull request updates the GuzzleAdapter to check the HTTP response for valid JSON. Before if the response was not valid json an exception was thrown. This change will intercept the non-JSON response and return an error formatted json response containing the original non-JSON response. This will maintain the original returned API status code as well

Checklist

  • Pull request contains a clear definition of changes
  • Tests (either unit, integration, or acceptance) written and passing
  • Relevant documentation produced and/or updated

Copy link
Contributor

@chrisryan chrisryan left a comment

Choose a reason for hiding this comment

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

Changes make sense. We should tag this as a potentially backwards breaking change. It also looks like the builds may need to be updated.

@chadicus chadicus closed this May 5, 2025
@chadicus chadicus deleted the v4.x branch May 5, 2025 18:13
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.

2 participants