Send does not work, gives WaitingForDNS error yet connect() doesn't fail
I'm not sure whether my earlier post was misplaced, hopefully this is a better place.
I'm trying to do a pub/sub tutorial, both publishing 1 message and subscribing to the queue. The original JS code as Solace created on Github. I'm trying to Typescript-ify the code and now it says
OperationError: Cannot perform operation SEND while in state WaitingForDNS
PING resolves the host URL to an IP address, so at the very least, this message is misleading.
This happens on a session.send(solaceMessage);
The session.connect() call, however, does not throw an exception. However, if there really was a DNS issue, it should have happened at that point.