We are experiencing an error when doing a SDK postToConnection() call as a promise, full error details given below. Other calls in the same function with a different connection ID happen successfully. Expected 410 connection errors are happening correctly and in milliseconds and are being handled gracefully.
This error then takes anything between 40 seconds to well over a minute to return, which causes it to always cause 'endpoint request timeout' errors in the Web socket API as it has a 30 second maximum request timeout. Has anybody experienced this issue before and/or any solution implemented? Any ideas to fix the issue will be highly appreciated, thanks.
UnknownError: Network error communicating with endpoint at Object.extractError (/opt/nodejs/node_modules/aws-sdk/lib/protocol/json.js:51:27)