We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RequestError: Stream closed with error code NGHTTP2_PROTOCOL_ERROR
Response with status 200
import got from 'got'; async function main() { try { const response = await got('https://frasix.it/ads.txt', { http2: true, }); console.log(response.body); } catch (error) { console.log(error); } } main()
The text was updated successfully, but these errors were encountered:
This is reproducible even without http2-wrapper:
http2-wrapper
import http2 from 'http2'; const session = http2.connect('https://frasix.it'); const request = session.request({ ':path': '/ads.txt', ':authority': 'frasix.it' }); console.log(request.sentHeaders); request.pipe(process.stdout); request.once('response', status => console.log(status)); request.once('close', () => session.unref());
also reproducible with curl:
curl
$ curl --http2 https://frasix.it/ads.txt curl: (92) HTTP/2 stream 1 was not closed cleanly: PROTOCOL_ERROR (err 1)
Sorry, something went wrong.
I have created nodejs/node#50660 for you
No branches or pull requests
Describe the bug
Actual behavior
Expected behavior
Response with status 200
Code to reproduce
Checklist
The text was updated successfully, but these errors were encountered: