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

Sending HTTP Requests to HTTP 2.0 Enabled Websites Return No Response #4333

Closed
umutm opened this issue Dec 17, 2015 · 2 comments
Closed

Sending HTTP Requests to HTTP 2.0 Enabled Websites Return No Response #4333

umutm opened this issue Dec 17, 2015 · 2 comments
Labels
duplicate Issues and PRs that are duplicates of other issues or PRs. http Issues or PRs related to the http subsystem.

Comments

@umutm
Copy link

umutm commented Dec 17, 2015

Many websites have started to enable HTTP 2.0 with fallback to HTTP 1.1 (CloudFlare started enabling this too).

And, Nodejs' HTTP requests seem to fail on such websites without an error. No statusCodes or body returned.

That is pretty important considering the increase in HTTP 2.0 enabled websites.

Do anyone know a workaround for getting the response of HTTP requests sent to "HTTP 2.0 enabled with HTTP 1.1 fallback websites"?

As an example:

var request = require('request');

request('https://www.tunetheweb.com', {
  headers: {
    'User-Agent': 'request'
  }
}, function (error, response, body) {
  if (error) {
    console.error(error);
  } else {
      console.log(response.statusCode);
  }
})
@Fishrock123 Fishrock123 added the http Issues or PRs related to the http subsystem. label Dec 17, 2015
@Fishrock123
Copy link
Contributor

cc @nodejs/http

@tunetheweb
Copy link

Note this is a duplicate of #4334 as was working with umutm on this and we both posted at same time. Happy to close one or the other as no point keeping both open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate Issues and PRs that are duplicates of other issues or PRs. http Issues or PRs related to the http subsystem.
Projects
None yet
Development

No branches or pull requests

4 participants