Skip to content

🎥 Make videos programmatically with React

Merge branch 'main' into lambda-testing

Jonny Burger991ee275c2a0
diff --cc packages/docs/docs/timeout.md
index 9cefbc4b79,b544e7a1c7..5961cdbeea
--- a/packages/docs/docs/timeout.md
+++ b/packages/docs/docs/timeout.md
@@@ -60,9 -64,29 +64,29 @@@ Sometimes, you cannot avoid a render ta
You can increase the default timeout from v2.6.3 on:
- Using the [`--timeout`](/docs/cli#--timeout) CLI flag
-- Using the `timeoutInMilliseconds` option in [`renderStill()`](/docs/render-still#timeoutinmilliseconds), [`renderFrames()`](/docs/render-frames#timeoutinmilliseconds) and [`getCompositions()`](/docs/get-compositions#timeoutinmilliseconds)
+- Using the `timeoutInMilliseconds` option in [`renderStill()`](/docs/render-still#timeoutinmilliseconds), [`renderFrames()`](/docs/render-frames#timeoutinmilliseconds), [`getCompositions()`](/docs/get-compositions#timeoutinmilliseconds), [`renderMedia()`](/docs/renderer/render-media#timeoutinmilliseconds), [`renderMediaOnLambda()`](/docs/lambda/rendermediaonlambda#timeoutinmilliseconds) and [`renderStillOnLambda()`](/docs/lambda/renderstillonlambda#timeoutinmilliseconds)
- Using the [`Config.Puppeteer.setTimeoutInMilliseconds()`](/docs/config#settimeoutinmilliseconds) option in the config file
+ ## Adding a label to help debugging
+
+ _Available from v2.6.13_
+
+ If you encounter a timeout and don't know where it came from, you can add a label as a parameter:
+
+ ```tsx twoslash
+ import { delayRender } from "remotion";
+
+ // ---cut---
+
+ delayRender("Fetching data from API...");
+ ```
+
+ If the call times out, the label will be referenced in the error message:
+
+ ```
+ Uncaught Error: A delayRender() "Fetching data from API..." was called but not cleared after 28000ms. See https://remotion.dev/docs/timeout for help. The delayRender was called
+ ```
+
## See also
- [delayRender()](/docs/delay-render)