In the AI app age, 60 seconds is quite laughable as a timeout duration. I’m working on an AI app and my calls sometimes go over 1 min, which ends up retrying the call and creating duplicate content.
Particularly, I am triggering an n8n webhook which kicks off a series of workflows before returning a response to the user in bubble.
Is there any way to get around this?
This is a dealbreaker for me and if there’s not a workaround, I may have to consider building elsewhere.
With reasoning and image generation models getting more and more advanced, this should have been addressed a while ago. Not a good look for Bubble!
Anyway, rant over, if anyone has any suggestions I would really appreciate it.
This is where WebSockets come in, enabling a real-time connection longer than 60 seconds, as it runs client-side.
Alternative Solution:
Use a server-side action or backend workflow in Bubble to trigger your long-running n8n process. Return immediately, and let n8n notify Bubble when it’s done using a backend API workflow.
This avoids the 60-second frontend timeout.
P.S. There might be some caching issues on the front end not updating in real-time witth the last solution, so avoid doing a search if possible.
Tried this and it works well. I used “Message” isntead of job and had the same setup as you described. The last step of my n8n workflow was to create (or rather update) the last message in the chat which was the loading one. All worked great. Thanks!