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
/home/pi/semafor/1_sem.js:452
if ( err ) throw err ;
^
Error: process exited with code 1
at terminateIfNeeded (/home/pi/semafor/node_modules/python-shell/index.js:100:23)
at ChildProcess. (/home/pi/semafor/node_modules/python-shell/index.js:88:9)
at emitTwo (events.js:100:13)
at ChildProcess.emit (events.js:185:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:204:12)
I am calling yowsup-cli from node, with this code :
app.post( '/enviar_msg_whatsapp/ParamTfNum=:req_tf_num', function (req, res) {
var WhatsApp_Tf_Number = req.params.req_tf_num ;
console.log( '>>> Menu enviar msg WhatsApp via python. Tf param is (' + WhatsApp_Tf_Number + '). ' ) ;
The symptoms are :
/home/pi/semafor/1_sem.js:452
if ( err ) throw err ;
^
Error: process exited with code 1
at terminateIfNeeded (/home/pi/semafor/node_modules/python-shell/index.js:100:23)
at ChildProcess. (/home/pi/semafor/node_modules/python-shell/index.js:88:9)
at emitTwo (events.js:100:13)
at ChildProcess.emit (events.js:185:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:204:12)
I am calling yowsup-cli from node, with this code :
app.post( '/enviar_msg_whatsapp/ParamTfNum=:req_tf_num', function (req, res) {
var python_options = {
mode: 'text',
pythonPath: '/usr/bin/python',
pythonOptions: ['-u'],
scriptPath: '/usr/local/bin',
args: ['demos --debug -c /usr/local/bin/mydetails -s 34666777888 SEMnodeMsg']
} ;
} ) ; // enviar mensage whatsapp
Thanks for any clue.
Solved using
args: [ 'demos', '-c', '/usr/local/bin/mydetails', '-s', '34666777888', 'Envio des el NODEJS' ]
The text was updated successfully, but these errors were encountered: