enqueueLinks unprocessedRequests return value is always an empty array #2903
-
Which package is this bug report for? If unsure which one to select, leave blank@crawlee/core Issue description
// within any crawler
const { processedRequests, unprocessedRequests } = await enqueueLinks({...})
// you would obviously expect unprocessedRequests to hold something at some case
// the return value in the source code (`enqueue_links.ts`)
export async function enqueueLinks(
options: SetRequired<EnqueueLinksOptions, 'requestQueue' | 'urls'>,
): Promise<BatchAddRequestsResult> {
// ...
return { processedRequests: addedRequests, unprocessedRequests: [] }; // seems to be hard coded to be empty
} is this an intended behavior? Code sampleconst { processedRequests, unprocessedRequests } = await enqueueLinks({
globs: sameDomainPatterns(this.domain),
exclude: staticFilePatterns,
});
// unprocessedRequests is never a filled array. Package versionNode.js versionv20.15.0 Operating systemmacos Sequoia 15.3.2 Apify platform
I have tested this on the
|
Beta Was this translation helpful? Give feedback.
Answered by
vladfrangu
Mar 29, 2025
Replies: 1 comment 1 reply
-
Hey! Indeed, it is expected behavior! Usually you should never encounter unprocessedRequests [either because we handle it internally, or its just not returned from the API] |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
seho0808
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey! Indeed, it is expected behavior! Usually you should never encounter unprocessedRequests [either because we handle it internally, or its just not returned from the API]