Got Byte Order Mark in fetch response and it's prevent call response.json() #1573
Unanswered
Lehuyknight
asked this question in
Q&A
Replies: 1 comment
-
It seems to be fixed in v3 already. we have switched to using TextDecoder instead that removes BOM |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I got this error "message": "invalid json response body at {{url}} reason: Unexpected token ? in JSON at position 0"
and i see this
the red dot is /ufeff. How can I pass that to call json() or how to convert from text() to json format. Thanks for reading and hope to find answer. I'm using node-fetch v2.6.7 and @types/node-fetch v2.6.1
Beta Was this translation helpful? Give feedback.
All reactions