-
Notifications
You must be signed in to change notification settings - Fork 290
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
Doesn't get any responce from https.get on specific https website #78
Comments
Hey, are you having any luck with this yet? Are you running
|
still have a problem, with curl works fine
|
var https = require('https'); https.get('https://www.juvalis.de/', function(res) {
}).on('error', function(e) { I'm doing it with version .12 of node & it's giving me the same. it's not even logging the string chunk |
I try also with v0.10.25 and don't work. Very strange |
Are you trying to create a server with this, is this code suppose to be attached to some other code? What exactly are you trying to do? Besides get a response? |
No server, It's scraping app.There are more than 20 shops and all works fine except that one. |
Bummer, well let's change that & get you back up & running. |
oh yeah |
Okay so I'm getting a response with this, it may not be what you wanted, but we can inch closer to the end goal with it. const https = require('https'); https.get('https://juvalis.de/', (res) => { res.on('data', (d) => { }).on('error', (e) => { don't worry I'll try to dial it down from es6 once we get the result you want.
|
Are you having any luck on your side? |
Still no luck |
Are you sitting behind a proxy? |
No
|
So @AlexBGD from the response i got earlier in that photo, what kind of response are you expecting, how should this code respond? |
So when I remove www from url I get error event(like on your photo) but still don't get any responce, only error event.
|
Because your not assigning it a server & specifying a port for it to run on, your not gonna be able to see this in a browser. But we can give it a createServer & port & run it in a browser. |
I don't need a server, it's cli app. I just want to know why I don't get any respoce and how to handle that in the future. |
I would close this now, but i want one of my colleagues to look this over, to make sure i didn't miss anything. |
Can you confirm? |
I can confirm that work on master but not v4 or v5 |
👍 Thanks guys for helping out. @thealphanerd & @bnoordhuis
|
It would be good to figure out what commit fixes it (probably not ALPN support, that exists in v5) and back-port it. I don't have time right now but a simple |
I'll give a bisect a run this afternoon. I really hope it isn't a semver major fix |
Hey what's the result of this running successful, since it works on |
@kelthenoble the result would be the entire html document. If you see lots of lines in your terminal it is working, if not :( |
I think i got ya. Ok this is my first time |
@kelthenoble let me know if you want to pair on this. Feel free to ping me in #node-dev |
yeah, that sounds great, I'm reinstalling git short cuts & ohmyzsh, i factory restarted my mac I'm down in about 5 mins. |
@AlexBGD Thanks for your patience as we got to the root of the problem. So in conclusion, there has been issues like this, and the fix was pushed master. But to my understanding, some of the support for other versions will drop in the following weeks. But there is a temp solution: https://nodejs.org/download/nightly/. If you follow some of the references & links, you can look further into it. But for now, my advice is just to wait for a few weeks. |
Thanks man |
You're very welcome. |
no errors,no response only close
The text was updated successfully, but these errors were encountered: