Skip to content

Commit 2b74503

Browse files
committed
changed timeout message and comment
1 parent 4def10c commit 2b74503

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/basic-crawler/src/internals/basic-crawler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1343,7 +1343,7 @@ export class BasicCrawler<Context extends CrawlingContext = BasicCrawlingContext
13431343
await addTimeoutToPromise(
13441344
async () => this._runRequestHandler(crawlingContext),
13451345
this.requestHandlerTimeoutMillis,
1346-
`BasicCrawler Wrapper(Combined) timed out after ${this.requestHandlerTimeoutMillis / 1000} seconds (${request.id}).`,
1346+
`Request handler safety timed out after ${this.requestHandlerTimeoutMillis / 1000} seconds (${request.id}).`,
13471347
);
13481348
} else {
13491349
// No timeout wrapper - run directly

packages/browser-crawler/src/internals/browser-crawler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ export abstract class BrowserCrawler<
332332
{
333333
...basicCrawlerOptions,
334334
requestHandler: async (...args) => this._runRequestHandler(...(args as [Context])),
335-
requestHandlerTimeoutSecs: 0, // Disable request handler timeout after modifying the basic crawler wrapper
335+
requestHandlerTimeoutSecs: 0, // Disable outer request handler timeout after modifying the basic crawler wrapper
336336
},
337337
config,
338338
);

0 commit comments

Comments
 (0)