Skip to content

Fix 204 handling#171

Merged
lovvskillz merged 1 commit intolovvskillz:masterfrom
AlecHaring:fix-204-handling
Aug 6, 2025
Merged

Fix 204 handling#171
lovvskillz merged 1 commit intolovvskillz:masterfrom
AlecHaring:fix-204-handling

Conversation

@AlecHaring
Copy link
Contributor

Currently, execute has logic that considers the 204 response code an indicator of a successful send.

But, later in the method, it tries to parse the response body as JSON. If the response is a 204, the response body would be empty, resulting in a JSON parsing exception.

I've added handling so it avoids trying to parse the response if the response content is empty.

@lovvskillz lovvskillz merged commit 98cce42 into lovvskillz:master Aug 6, 2025
4 checks passed
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

Comments