-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Closed
Labels
Description
Anybody know how I should be handling a BOM with a returned json payload? Right now i'm getting this error when calling res.json()
Exception: FetchError: invalid json response body at https://api_that_returns_json_with_bom reason: Unexpected token ? in JSON at position 0
I tried adding an Accept header of application/json; charset=utf-8
but that didn't resolve the issue.