Skip to content

Undici throwing error when parsing empty response with application/json content type #3348

Answered by mcollina
Rocinante89 asked this question in Q&A
Discussion options

You must be logged in to vote

A JSON is at least 2 bytes according to RFC 8259. The behavior of undici is correct.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Rocinante89
Comment options

Answer selected by Rocinante89
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants