Skip to content

Commit 7e03bf3

Browse files
author
stlc-bot
committed
fix(api): reject timeoutMS too short for waitForMs
Stainless-Generated-From: 4265cce9e8ec60bc719c657884ea253811409408
1 parent 0871fe1 commit 7e03bf3

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎pkg/cmd/web.go‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ var webScreenshot = requestflag.WithInnerFlags(cli.Command{
316316
},
317317
&requestflag.Flag[*int64]{
318318
Name: "wait-for-ms",
319-
Usage: "Optional browser wait time in milliseconds after initial page load before taking the screenshot. Min: 0. Max: 30000 (30 seconds). Defaults to 3000 ms when omitted.",
319+
Usage: "Optional browser wait time in milliseconds after initial page load before taking the screenshot. Min: 0. Max: 30000 (30 seconds). Defaults to 3000 ms when omitted. When combined with timeoutMS, timeoutMS must be at least waitForMs + 10000 ms; a shorter deadline is rejected with 400 TIMEOUT_TOO_SHORT_FOR_WAIT.",
320320
Default: requestflag.Ptr[int64](3000),
321321
QueryPath: "waitForMs",
322322
},
@@ -689,7 +689,7 @@ var webWebScrapeHTML = requestflag.WithInnerFlags(cli.Command{
689689
},
690690
&requestflag.Flag[*int64]{
691691
Name: "wait-for-ms",
692-
Usage: "Optional browser wait time in milliseconds after initial page load. Min: 0. Max: 30000 (30 seconds).",
692+
Usage: "Optional browser wait time in milliseconds after initial page load. Min: 0. Max: 30000 (30 seconds). When combined with timeoutMS, timeoutMS must be at least waitForMs + 10000 ms; a shorter deadline is rejected with 400 TIMEOUT_TOO_SHORT_FOR_WAIT.",
693693
QueryPath: "waitForMs",
694694
},
695695
&requestflag.Flag[string]{
@@ -776,7 +776,7 @@ var webWebScrapeImages = requestflag.WithInnerFlags(cli.Command{
776776
},
777777
&requestflag.Flag[*int64]{
778778
Name: "wait-for-ms",
779-
Usage: "Optional browser wait time in milliseconds after initial page load before collecting images. Min: 0. Max: 30000 (30 seconds).",
779+
Usage: "Optional browser wait time in milliseconds after initial page load before collecting images. Min: 0. Max: 30000 (30 seconds). When combined with timeoutMS, timeoutMS must be at least waitForMs + 10000 ms; a shorter deadline is rejected with 400 TIMEOUT_TOO_SHORT_FOR_WAIT.",
780780
QueryPath: "waitForMs",
781781
},
782782
},
@@ -909,7 +909,7 @@ var webWebScrapeMd = requestflag.WithInnerFlags(cli.Command{
909909
},
910910
&requestflag.Flag[*int64]{
911911
Name: "wait-for-ms",
912-
Usage: "Optional browser wait time in milliseconds after initial page load before converting the page to Markdown. Min: 0. Max: 30000 (30 seconds).",
912+
Usage: "Optional browser wait time in milliseconds after initial page load before converting the page to Markdown. Min: 0. Max: 30000 (30 seconds). When combined with timeoutMS, timeoutMS must be at least waitForMs + 10000 ms; a shorter deadline is rejected with 400 TIMEOUT_TOO_SHORT_FOR_WAIT.",
913913
QueryPath: "waitForMs",
914914
},
915915
&requestflag.Flag[string]{

0 commit comments

Comments
 (0)