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

Output - undefined #7

Open
markaves opened this issue May 7, 2018 · 2 comments
Open

Output - undefined #7

markaves opened this issue May 7, 2018 · 2 comments

Comments

@markaves
Copy link

markaves commented May 7, 2018

When i ran the script, i get an output.json that has an entry of "undefined". Maybe IMDB got changed?

@markaves
Copy link
Author

markaves commented May 7, 2018

I added a logging for error and it looks like it is redirecting to https and it cannot handle the certificate

error: { Error: self signed certificate in certificate chain
at TLSSocket. (_tls_wrap.js:1108:38)
at emitNone (events.js:105:13)
at TLSSocket.emit (events.js:207:7)
at TLSSocket._finishInit (_tls_wrap.js:638:8)
at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:468:38) code: 'SELF_SIGNED_CERT_IN_CHAIN' }
File successfully written! - Check your project directory for the output.json file

@markaves
Copy link
Author

markaves commented May 7, 2018

Fixed: I have updated to code to look like this
request({
url : url,
rejectUnauthorized : false
},
function(error, response, html){

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

1 participant