I’m getting this error yet I believe there is connection since the app works just fine when I interact with the UI, change or save something in a workflow.
This is happened after I configured a reverse proxy in front of n8n. Here is the setup:
Guess the problem is that the reverse proxy is not configured correctly to work with Server-Sent Events. For that reason do you see this error message. You should find the solution here:
Hello guys…
I’m on this issue “Lost Connection”… but my server is Apache… I’ve make a research and saw it’s very different from nginx configs and didn’t find anything here at community…
Do you have some hint?
Sometimes I get “404 page not found” too… and have to restart n8n…
Thanks.
@simeia sorry have even less knowledge about Apache than Nginx. I can only advise you to check the Nginx settings and then look online for settings in Apache which do the same.
Or you can search generally on Google for “server sent events” and Apache to find a possible configuration.
If none of it works for you I can sadly simply only advice you to use the default configuration with Nginx which can be found in the documentation.
Your nginx config looks good to me, I have actually used a similar one in the past without problems.
So I am not sure this is actually a problem with the SSE approach of passing data from the server to the frontend. You can, however, easily rule this out as a possible cause by switching to websockets.
If that’s not it and seeing this thread is several years old, perhaps you can open a new thread specifying exactly what you’re doing when running into the “connection lost” problem?