Closed lemieuxs closed 9 years ago
Hi, what is callback
in your client?
My callback is a simple function for my API. But I think the problem is elsewhere because the console.log(res) does not log anything...
When i put a breakpoint on the console.log line it never stops.
function(err, result) {
if (err)
{
req.stats.error = err;
res.status(err.httpCode).json({error: err.error});
}
else
{
res.json(result);
}
next();
});
I suppose printing the error doesn't work either? Does the helloworld on http://www.zerorpc.io/ works? I am all out of ideas.
I just did a clean project with only the Hello World from your site.
And I got this error in my node JS Client
/usr/local/bin/node --debug-brk=59893 --nolazy app.js
Debugger listening on port 59893
events.js:85
throw er; // Unhandled 'error' event
^
Error: Uncaught, unspecified "error" event.
at Error (native)
at Client.emit (events.js:87:13)
at MultiplexingSocket.<anonymous> (/Users/sebastienlemieux/node_modules/zerorpc/lib/util.js:33:17)
at MultiplexingSocket.emit (events.js:107:17)
at error (/Users/sebastienlemieux/node_modules/zerorpc/lib/socket.js:43:14)
at null.<anonymous> (/Users/sebastienlemieux/node_modules/zerorpc/lib/socket.js:57:20)
at emit (events.js:110:17)
at Socket._flush (/Users/sebastienlemieux/node_modules/zerorpc/node_modules/zmq/lib/index.js:573:17)
at exports.Socket._zmq.onReady (/Users/sebastienlemieux/node_modules/zerorpc/node_modules/zmq/lib/index.js:203:12)
Process finished with exit code 1
Hi,
I am trying to make a little program using a python server and a nodejs client.
Here is my server:
And this is my client:
My problem is that the answer never comes back from the server. I know that my request gets to the server and that there is no error.
Is there anything wrong in my node JS client. It also works when I try with a terminal as client