Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

(sdk)fix/same timeout as api now (#2503)

Rafael Miller3d418df1bcb5
diff --git a/apps/js-sdk/firecrawl/src/v2/utils/httpClient.ts b/apps/js-sdk/firecrawl/src/v2/utils/httpClient.ts
index d9a1a0894..dc0c6b8a7 100644
--- a/apps/js-sdk/firecrawl/src/v2/utils/httpClient.ts
+++ b/apps/js-sdk/firecrawl/src/v2/utils/httpClient.ts
@@ -23,7 +23,7 @@ export class HttpClient {
this.backoffFactor = options.backoffFactor ?? 0.5;
this.instance = axios.create({
baseURL: this.apiUrl,
- timeout: options.timeoutMs ?? 60000,
+ timeout: options.timeoutMs ?? 300000,
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${this.apiKey}`,
diff --git a/apps/python-sdk/firecrawl/v2/client.py b/apps/python-sdk/firecrawl/v2/client.py
index ca0905a7f..ce96dc254 100644
--- a/apps/python-sdk/firecrawl/v2/client.py
+++ b/apps/python-sdk/firecrawl/v2/client.py
@@ -198,7 +198,7 @@ class FirecrawlClient:
limit: Maximum number of results to return (default: 5)
tbs: Time-based search filter
location: Location string for search
- timeout: Request timeout in milliseconds (default: 60000)
+ timeout: Request timeout in milliseconds (default: 300000)
page_options: Options for scraping individual pages
Returns:
diff --git a/apps/python-sdk/firecrawl/v2/types.py b/apps/python-sdk/firecrawl/v2/types.py
index e99139633..73c5760c5 100644
--- a/apps/python-sdk/firecrawl/v2/types.py
+++ b/apps/python-sdk/firecrawl/v2/types.py
@@ -948,7 +948,7 @@ class SearchRequest(BaseModel):
tbs: Optional[str] = None
location: Optional[str] = None
ignore_invalid_urls: Optional[bool] = None
- timeout: Optional[int] = 60000
+ timeout: Optional[int] = 300000
scrape_options: Optional[ScrapeOptions] = None
integration: Optional[str] = None