ibm-messaging / mq-mqi-nodejs

Calling IBM MQ from Node.js - a JavaScript MQI wrapper
Apache License 2.0
79 stars 42 forks source link

mq.Get not executed after success ConnxPromise and OpenPromise #183

Closed chidung091 closed 3 months ago

chidung091 commented 4 months ago
Runtime Version: nodejs:20.v24 Runtime Version ARN: arn:aws:lambda:ap-southeast-1::runtime:de235be10466389b8aba8cdd664f203e3ab6d6fe49ead1503d9fc9552acf9e45
Configure has loglevel 2
Library built: May 16 2024 10:43:54
Initial TuningParms: platform:linux arch:x64 maxConsecutiveGets:1000 getLoopDelayTimeMs:250 useCtl:true autoCtl:true
[loadLib]
[LoadLibMulti]
[mqnpi] 2024-07-04T03:53:01.261Z : MQ library 'libmqm_r' loaded from /var/task/node_modules/ibmmq/redist/lib64
START RequestId: 6c4b46bc-77c9-4fb2-b7c6-50377aa3c84c Version: $LATEST
INFO startMQ
[Connx]
[checkParamCBRequired] req=true
[checkParamCBRequired]
[_connx]
[ConnxSync]
[mqnpi] 2024-07-04T03:53:01.755Z : About to call MQCONNX
[mqnpi] 2024-07-04T03:53:03.175Z : In CONNX OnOK method
[MQError] CONNX: MQCC = MQCC_OK [0] MQRC = MQRC_NONE [0]
[Open]
[checkParamCBRequired  ] req=true
[checkParamCBRequired  ]
[Open] Checking MQQueueManager { _hConn: 2113929221, _name: '', _inCB: false }
[open]
[openInternal]
[lock] hc: 2113929221
[lock]
[openInternal]
[open]
[Open]
[mqnpi] 2024-07-04T03:53:03.196Z : SUS
[mqnpi] 2024-07-04T03:53:03.196Z : isCBDefined  hConn:2113929221 rc:false
[mqnpi] 2024-07-04T03:53:03.216Z : RES
[mqnpi] 2024-07-04T03:53:03.216Z : isCBDefined  hConn:2113929221 rc:false
[unlock ] hc: 2113929221
[mqnpi] 2024-07-04T03:53:03.234Z : In OPEN OnOK method.
[mqnpi] 2024-07-04T03:53:03.234Z : HConn was 2113929221
[unlock]
[MQError] OPEN: MQCC = MQCC_OK [0] MQRC = MQRC_NONE [0]
[checkParamCBRequired ] req=true
[checkParamCBRequired ]
[GetAsync]
UseCtl =  true
[GetAsync]
[mqnpi] 2024-07-04T03:53:03.254Z : MakeKey: 2113929221/101 mapCount: 0
[mqnpi]GETASYNC - MQCB    CC:0 RC 0
[checkParamCBRequired] req=true
[checkParamCBRequired]
[GetAsync]
UseCtl =  true
[GetASync]
MakeKey: 2113929221/101 mapCount: 1
GETASYNC - MQCB    CC:0 RC 0

Hi team, currently i write a program for get message from mq using nodejs in lambda But actually when i using code based on https://github.com/ibm-messaging/mq-mqi-nodejs/issues/169 it success connect to mq by ConnxPromise and OpenPromise but when call mq.Get for getting message not seeing this function call, when i adding env key MQIJS_TRACE for tracing having this above log.Not understand log too much so hopefully get some help.Thanks!