After upgrading from Remotion 4.0.372 to 4.0.417, Lambda renders are failing with download timeouts. The same videos load instantly in a browser.
at Timeout.<anonymous> (/var/task/index.js:92:753)
at listOnTimeout (node:internal/timers:605:17)
at process.processTimers (node:internal/timers:541:7)
[Tab 0, src/components/timeline/canvas/items/video-item.tsx:80] OffthreadVideo has an error: Error: Tried to download file https://media.viewmax.io/users/xxx/assets/xxx.mp4, but the server sent no data for 20 seconds```
Also getting this error:
ERROR Could not extract frame from compositor Error: Received a status code of 522 while downloading file https://media.viewmax.io/users/xxx/assets/xxx.mp4.
The response body was:
error code: 522
at $fe (/var/task/index.js:91:13872)
This error affects multiple chunks in parallel renders (e.g., chunks 23 and 30 timeout while others succeed). The weird thing is after a few hours if the user exports again it will work fine.
For context, videos are hosted on Cloudflare R2, accessed via custom domain.
Any advice on how we can debug this?