You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just got this error trying to graph http://premasagar.com/:
/home/cnewton/Development/l4rp/elsewhere/lib/scraper.js:58
logger.warn('http error: ' + response.statusCode
^
TypeError: Cannot read property 'statusCode' of undefined
at Request._callback (/home/cnewton/Development/l4rp/elsewhere/lib/scraper.js:58:51)
at Request.init.self.callback (/home/cnewton/Development/l4rp/elsewhere/node_modules/request/main.js:120:22)
at Request.EventEmitter.emit (events.js:88:17)
at ClientRequest.Request.init.self.clientErrorHandler (/home/cnewton/Development/l4rp/elsewhere/node_modules/request/main.js:222:10)
at ClientRequest.EventEmitter.emit (events.js:88:17)
at CleartextStream.socketCloseListener (http.js:1314:9)
at CleartextStream.EventEmitter.emit (events.js:115:20)
at SecurePair.destroy (tls.js:907:22)
at process.startup.processNextTick.process._tickCallback (node.js:244:9)
Seems that in certain situations the response object comes back undefined. I'm going to try to replicate/fix it after food, but otherwise I'm loving the changes so far.
The text was updated successfully, but these errors were encountered:
Corrected this problem by using the node.js url parser to test for errors in the passed url string. Also changed the code around the http request so that it test to see if property 'statusCode' is defined before trying use it
Just got this error trying to graph
http://premasagar.com/
:Seems that in certain situations the response object comes back undefined. I'm going to try to replicate/fix it after food, but otherwise I'm loving the changes so far.
The text was updated successfully, but these errors were encountered: