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

r2 failed on some pages #45

Open
jerrywdlee opened this issue Dec 6, 2017 · 5 comments
Open

r2 failed on some pages #45

jerrywdlee opened this issue Dec 6, 2017 · 5 comments
Labels

Comments

@jerrywdlee
Copy link

jerrywdlee commented Dec 6, 2017

When I fetch some page like https://github.com, r2 failed and keep Promise pending.

node.js : v8.9.1
OS: Mac OS 10.12.6
r2: 2.0.0

r2('https://www.google.com').text.then(h => console.log(h)) // OK

r2('https://github.com').text.then(h => console.log(h)) // Failed
@pierreneter
Copy link

I don't see anything failed with

r2('https://github.com').text.then(h => console.log(h))

This https://github.com just return the empty response.

@jerrywdlee
Copy link
Author

@pierreneter Really? But curl https://github.com returns html to me as well as request did...

@Arttse
Copy link

Arttse commented Dec 30, 2017

Possible bug. By the way, this would work:

r2('https://github.com').response.then(r => r.text()).then(h => console.log(h))

@DevBrent
Copy link

I believe this issue to be related to the known issues with node-fetch's clone() polyfill. #48 (comment)

@nweldev
Copy link

nweldev commented Sep 10, 2019

@DevBrent I just verified that in my project and I can confirm that this is related to your comment

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

No branches or pull requests

6 participants