Lost connection to the server

I could successful login n8n by use https. However when I open a WF, a error message pop up

Lost connection to the server

Information on your n8n setup

  • n8n version: 1.98.2
  • Running n8n via Docker
  • Install n8n on google cloud VM, use Apache2 reverse proxy and letsencrypt to issue cert. for https connection to the n8n apps behind

Thanks!

Normally the issue is that websocket support is not enabled in the reverse proxy.
Can you have a look and see if you enabled it?

I have enabled it.

part of the lines in the apache2 proxy reverse config file

ProxyPass /rest/push wss://10.x.x.x:5678/rest/push
ProxyPassReverse /rest/push wss://10.x.x.x:5678/rest/push

But still not working. how to ensure the websocket path is correct?

I found the path in the developer mode in the chrome browser

index–ag0tEQM.js:299938 WebSocket connection to ‘wss://xxxxx.ddns.net/rest/push?pushRef=brncv8v7vc’ failed:

Thanks!