You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 6, 2022. It is now read-only.
FetchError: request to https://secure.runescape.com/m=hiscore_oldschool/index_lite.ws?player=magnaboy failed, reason: Parse Error: Invalid header value char
at ClientRequest.<anonymous> (C:\project\node_modules\node-fetch\lib\index.js:1455:11)
at ClientRequest.emit (events.js:315:20)
at TLSSocket.socketOnData (_http_client.js:514:9)
at TLSSocket.emit (events.js:315:20)
at addChunk (_stream_readable.js:302:12)
at readableAddChunk (_stream_readable.js:278:9)
at TLSSocket.Readable.push (_stream_readable.js:217:10)
at TLSWrap.onStreamRead (internal/stream_base_commons.js:186:23)
I tried to call this API with the exact same headers in other programming languages, in curl, wget and in all browsers - and it works in everything except nodejs, that I can find. Is it possible anyone can shed some light on this and if its possibly a problem in nodejs?
I've exhausted the depth of my ability to debug this error, and don't know how I should proceed. I reported it to the website owners but it doesnt seem practical or any priority at all for them to fix the root cause of whichever http header causes this.
The text was updated successfully, but these errors were encountered:
sorry for necromancing the conversation, we're hitting a similar issue.
But, @bnoordhuis are you sure that output (you've formatted with xxd) is not curl's verbose output? Curl displays server response prefixed with < just for display purposes.
Fails with this error:
I tried to call this API with the exact same headers in other programming languages, in
curl
,wget
and in all browsers - and it works in everything except nodejs, that I can find. Is it possible anyone can shed some light on this and if its possibly a problem in nodejs?I've exhausted the depth of my ability to debug this error, and don't know how I should proceed. I reported it to the website owners but it doesnt seem practical or any priority at all for them to fix the root cause of whichever http header causes this.
The text was updated successfully, but these errors were encountered: