I am trying to use Server Sent Events with pocketbase and triggering the correct api from PocketBase. I have already tested this API via Postman and it works as expected
What is the error message (if any)?
The SSE trigger node in n8n runs continuously and never returns an output
Please share your workflow
Share the output returned by the last node
The output is never generated but should look something like this:
and then used http://localhost:1234/ as the url in my workflow, and it seems to work just as expected.
Can you please try running this test server, and see if the node still fails for you?
Apologies I think I have misunderstood how this node trigger because I still don’t see it working. I tried running the script exactly like you have shared with the same js file.
This is the node after the trigger node and it creates a simple table. It never triggers and does not show up in executions. I added a timeout after 15 seconds which is why we see the error on the bottom right (which means 0 successful executions)
Still unable to reproduce this.
I ran the SSE server using the code I posted above, and then used your workflow, and got a successful execution immediately.
I have the same issue where I can’t even get the node to trigger with https://sse.dev
I’m using Cloudflare tunnels to access my n8n instance that’s running on docker. Would that have something to do with it?
Probably not. Cloudflare tunnel is supposed to be between a n8n client (UI or webhook), and the n8n backend. The SSE connection shouldn’t be going through the tunnel.
That said, I unfortunately still can’t reproduce this issue. There is a possibility that some kind of a proxy/tunnel situation between n8n and the SSE server could be causing it, but I don’t have enough information to know this for sure.