I do have an web application which runs on two servers (server A and server B) and is load balanced with a single URL.
When I run the load balanced URL on each transaction I am getting the following error om the Chrome Console.
main.d3d29f92e65e59df5742.js:1 WebSocket connection to 'wss://(URL)/websocket' failed:
E8Ah.e.exports @ main.d3d29f92e65e59df5742.js:1
l @ main.d3d29f92e65e59df5742.js:1
SGzc.w._connect @ main.d3d29f92e65e59df5742.js:1
SGzc.w._receiveInfo @ main.d3d29f92e65e59df5742.js:1
r @ main.d3d29f92e65e59df5742.js:1
s.emit @ main.d3d29f92e65e59df5742.js:1
(anonymous) @ main.d3d29f92e65e59df5742.js:1
r @ main.d3d29f92e65e59df5742.js:1
s.emit @ main.d3d29f92e65e59df5742.js:1
(anonymous) @ main.d3d29f92e65e59df5742.js:1
r @ main.d3d29f92e65e59df5742.js:1
s.emit @ main.d3d29f92e65e59df5742.js:1
xhr.onreadystatechange @ main.d3d29f92e65e59df5742.js:1
T @ polyfills.0a2cb5bcbd9228a348ac.js:1
invokeTask @ polyfills.0a2cb5bcbd9228a348ac.js:1
onInvokeTask @ main.d3d29f92e65e59df5742.js:1
invokeTask @ polyfills.0a2cb5bcbd9228a348ac.js:1
runTask @ polyfills.0a2cb5bcbd9228a348ac.js:1
invokeTask @ polyfills.0a2cb5bcbd9228a348ac.js:1
p @ polyfills.0a2cb5bcbd9228a348ac.js:1
f @ polyfills.0a2cb5bcbd9228a348ac.js:1
This error only appears when I use the load balanced URL. If I use the URL for the individual server this is not present.
Both servers are using https protocol on Tomcat 9 and also use ActiveMQ for integration. I have not done any additional Tomcat configurations for the load balance.
Could you please advise on possible causes
Checked if the certificates are valid
Added wss protocol in the ActiveMQ settings
Checked the answers from the other topics but I am not getting a handshake error