Skip to content
New issue

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

Request fails with NGHTTP2_INTERNAL_ERROR for http2 requests #2300

Closed
2 tasks done
teammakdi opened this issue Sep 22, 2023 · 3 comments
Closed
2 tasks done

Request fails with NGHTTP2_INTERNAL_ERROR for http2 requests #2300

teammakdi opened this issue Sep 22, 2023 · 3 comments

Comments

@teammakdi
Copy link

teammakdi commented Sep 22, 2023

Describe the bug

  • Node.js version: 18.17.0
  • OS & version: Ubuntu
  • Got version: 13.0.0

Actual behavior

RequestError: Stream closed with error code NGHTTP2_INTERNAL_ERROR

Expected behavior

Response with status 200

Code to reproduce

import got from 'got';

async function main() {
    try {
        const response = await got('https://frogtoon.com/ads.txt', {
            http2: true,
        });
        console.log(response.body);
    } catch (error) {
        console.log(error);
    }
}

main()

Checklist

  • I have read the documentation.
  • I have tried my code with the latest version of Node.js and Got.

Original Issue: apify/crawlee#2081

@teammakdi teammakdi changed the title Http crawl fails with timeout for http2 requests Request fails with NGHTTP2_INTERNAL_ERROR for http2 requests Sep 22, 2023
@teammakdi
Copy link
Author

Works with http2 as false

@teammakdi
Copy link
Author

@sindresorhus can you please have a look?

@sindresorhus
Copy link
Owner

HTTP2 support is handled by https://github.com/szmarczak/http2-wrapper

// @szmarczak

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants