node-js-libs / curlrequest

A cURL wrapper
MIT License
184 stars 44 forks source link

On heroku its failing #31

Closed pulkitnandan closed 9 years ago

pulkitnandan commented 9 years ago

I have very simple app in sailsjs which uses curl request for simple get request but fails with following error on heroku, is this heroku or some issue with this

2015-09-16T21:07:02.031430+00:00 app[web.1]: Check for new additions 2015-09-16T21:07:21.671439+00:00 app[web.1]: Total committees found are 30 2015-09-16T21:07:21.671445+00:00 app[web.1]: Processing Them 2015-09-16T21:07:21.671446+00:00 app[web.1]: 2015-09-16T21:07:21.872619+00:00 app[web.1]: /app/node_modules/curlrequest/index.js:260 2015-09-16T21:07:21.872624+00:00 app[web.1]: curl.stdout.on('data', function (data) { 2015-09-16T21:07:21.872626+00:00 app[web.1]: ^ 2015-09-16T21:07:21.872627+00:00 app[web.1]: TypeError: Cannot read property 'on' of undefined 2015-09-16T21:07:21.872628+00:00 app[web.1]: at /app/node_modules/curlrequest/index.js:260:20 2015-09-16T21:07:21.872630+00:00 app[web.1]: at module.exports (/app/node_modules/curlrequest/spawn.js:19:9) 2015-09-16T21:07:21.872631+00:00 app[web.1]: at Object.exports.request (/app/node_modules/curlrequest/index.js:257:17) 2015-09-16T21:07:21.872632+00:00 app[web.1]: at /app/crontab/committees.js:27:22 2015-09-16T21:07:21.872634+00:00 app[web.1]: at wrapper (/app/node_modules/sails/node_modules/waterline/node_modules/lodash/index.js:3602:19) 2015-09-16T21:07:21.872635+00:00 app[web.1]: at applyInOriginalCtx (/app/node_modules/sails/node_modules/waterline/lib/waterline/utils/normalize.js:421:80) 2015-09-16T21:07:21.872637+00:00 app[web.1]: at wrappedCallback (/app/node_modules/sails/node_modules/waterline/lib/waterline/utils/normalize.js:320:18) 2015-09-16T21:07:21.872638+00:00 app[web.1]: at callback.success (/app/node_modules/sails/node_modules/waterline/node_modules/switchback/lib/normalize.js:33:31) 2015-09-16T21:07:21.872639+00:00 app[web.1]: at _switch (/app/node_modules/sails/node_modules/waterline/node_modules/switchback/lib/factory.js:48:28) 2015-09-16T21:07:21.872640+00:00 app[web.1]: at returnResults (/app/node_modules/sails/node_modules/waterline/lib/waterline/query/finders/basic.js:392:9) 2015-09-16T21:07:21.872641+00:00 app[web.1]: at /app/node_modules/sails/node_modules/waterline/lib/waterline/query/finders/basic.js:272:16 2015-09-16T21:07:21.872642+00:00 app[web.1]: at /app/node_modules/sails/node_modules/waterline/lib/waterline/query/finders/operations.js:82:7 2015-09-16T21:07:21.872644+00:00 app[web.1]: at /app/node_modules/sails/node_modules/waterline/node_modules/async/lib/async.js:49:16 2015-09-16T21:07:21.872646+00:00 app[web.1]: at Object.async.forEachOf.async.eachOf (/app/node_modules/sails/node_modules/waterline/node_modules/async/lib/async.js:227:20) 2015-09-16T21:07:21.872647+00:00 app[web.1]: at Object.async.forEach.async.each (/app/node_modules/sails/node_modules/waterline/node_modules/async/lib/async.js:206:22) 2015-09-16T21:07:21.872648+00:00 app[web.1]: at /app/node_modules/sails/node_modules/waterline/lib/waterline/query/finders/operations.js:433:11 2015-09-16T21:07:21.894708+00:00 app[web.1]: Error waiting for process to terminate: No child processes

chriso commented 9 years ago

What version of node are you using? Can you provide some example code?

pulkitnandan commented 9 years ago

its been a issue related to heroku which donot accepts mannual npm install after doing heroku run bash.