fhomam commented on issue #385: URL: https://github.com/apache/pulsar-client-node/issues/385#issuecomment-2106048931
The order of execution you've provided above is correct, with await calls all around. The API calls are to an LLM service. I noticed the issue doesn't appear when the API returns relatively faster in one script than the other. I just tried this again by setting receiverQueueSize to 1, that didn't seem to solve the issue. But trying again and s**etting ackTimeoutMs to 0, from an earlier value of 10000, does seem to resolve the issue** and ack works as expected and the while loop terminates as expected with: "Error: Failed to receive message: TimeOut" axios: 1.6.8 pulsar-client: 1.10.0 pulsar (standalone on docker): 3.2.2 node: v20.9.0 Apologies as a sample code is a bit involved, but I hope the above sheds some more light. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
