rubber-blueR
Apify & Crawlee3y ago
4 replies
rubber-blue

The function in node_modules "teardown" is not being called (it's in an infinite waiting state).

I deployed an AWS Lambda application (in this example, it's a test one). When I run the Lambda, the application works fine. The data is being scraped successfully, and the scraped data is logged, but however, when there are no more jobs (links in the queue), the Lambda doesn't return anything and times out after 30 seconds. Scraping takes no more than 6 seconds.

I debugged the node_modules folder and found that for some reason, the "await this.teardown()" method is not being invoked in the lambda. Additionally, the logs (which I set up inside this function) are not being called either, and consequently after this function too.

When running locally, everything works perfectly.
Was this page helpful?