var request = require('request');
var url = 'http://pinterest.com';
request({
'method':'GET',
'url':url,
}, function(err, response, body){
});
When I hit this , I get:
[TypeError: Cannot read property 'url' of undefined]
TypeError: Cannot read property 'url' of undefined
at new Cookie (/home/user/project/src/node_modules/request/vendor/cookie/indeprojectx.js:45:20)
at /home/user/project/src/node_modules/request/main.js:434:33
at Array.forEach (native)
at Request.<anonymous> (/home/user/project/src/node_modules/request/main.js:428:46)
at Request.emit (events.js:67:17)
at IncomingMessage.<anonymous> (/home/user/project/src/node_modules/request/main.js:393:16)
at IncomingMessage.emit (events.js:88:20)
at HTTPParser.onMessageComplete (http.js:137:23)
at Socket.ondata (http.js:1137:24)user
Note: I am on EC2. For some reason this doesn't work with pinterest.com. It works on Google.com and yahoo.com. I can CURL pinterest.com just fine.
Fixed. I updated the module and it worked.