HTTP request gets killed/closed early

I’m running a frontend in SvelteKit with Bun and a backend in Python with FastAPI. When running in production, I get timeouts consistently when trying to call the generate endpoint of my backend from my frontend when it takes longer than 10 seconds. How can I increase this/avoid the timeout? The generate usually takes less than 15 seconds.

2024-10-28T10:39:33.116 app[e825235f79e658] lhr [info] Generating presentation 1
2024-10-28T10:39:33.181 app[e825235f79e658] lhr [info] Sending data to backend for presentation 1
2024-10-28T10:39:43.270 proxy[e825235f79e658] lhr [error] [PU02] could not complete HTTP request to instance: connection closed before message completed 

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.