Request queue with id: [id] not does not exist
I create an API with express that runs crawle when called on an endpoint.
It is weird that it works completly fine on the first request I make to the API, but fails on the next ones.
I get the error: Request queue with id: [id] not does not exist.
I think I'm making some JavaScript mistake tbh, I don't have much experience with it.
Here is the way I'm doing the API:
Here is how my crawler look:
2 Replies
Someone will reply to you shortly. In the meantime, this might help:
wise-white•2mo ago
Maybe the error happens because Crawlee's components (like request queues) are designed for single-use within one crawl. When you try to reuse the same crawler instance for a second request, it's trying to access resources that were already cleaned up.
So probably you need to create a new crawler instance for each request
e.q.: