You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "bhavesh goswami (JIRA)" <ji...@apache.org> on 2018/08/01 10:09:00 UTC
[jira] [Created] (THRIFT-4608) Different Behaviour for same thrift
call in nodejs client
bhavesh goswami created THRIFT-4608:
---------------------------------------
Summary: Different Behaviour for same thrift call in nodejs client
Key: THRIFT-4608
URL: https://issues.apache.org/jira/browse/THRIFT-4608
Project: Thrift
Issue Type: Bug
Components: Node.js - Library
Affects Versions: 0.9.3
Reporter: bhavesh goswami
Hi
i am using thrift nodejs client for rpc communications there is weird behaviour in one of my thrift call. so below is function sequence in which it is getting called. my function name is "myFunction".
*Success Sequence of call ..*
1) myFunction
2) send_myFunction
3) TService_myFunction_args
4) recv_myFunction
5) TService_myFunction_result
*Failure Sequence of Call ..*
1) myFunction
2) send_myFunction
3) recv_myFunction
All though i am receiving response on both call but there is slight difference between them here it is the difference.
*Success Response* => \{"success": responseObj, "ex": null}
*Failure Response* => \{"success": responseObj}
so in my nodejs generated library the code is something like this and it is failing.
if (null !== result.ex) { //null !== undefined which is true.
return callback(result.ex);
}
if (null !== result.success) {
return callback(null, result.success);
}
please help here what needs to be done.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)