What is a timeout error?
A timeout error occurs when the ScrapeGraphAI API takes longer than the allowed time to process your request. This can happen when the target website is slow, the page is complex, or you are crawling many pages at once. You may receive an HTTP408 Request Timeout or see a status of "failed" with a timeout message in the async job response.
Common causes
1. The target website is slow
Some websites have very slow response times, especially under load or in certain geographic regions. Fix: Retry the request. Use the status endpoint to poll the job result instead of waiting for a synchronous response.2. The page has too much content
Very large pages (e.g., pages with thousands of products or articles) take longer to process. Fix: Narrow your prompt to target a specific section of the page, or use SmartCrawler with a depth and page limit.3. JavaScript rendering takes too long
Pages that rely heavily on JavaScript, lazy loading, or infinite scroll may time out while waiting for content to appear. Fix: Use thewait_ms parameter to give the page additional time to load before extraction begins.