Also, another side note. It seems this middleware is not respecting the normal shutdown signal Scrapy sends, forcing a user to force an unclean shutdown
2020-07-31 10:03:05 [scrapy.crawler] INFO: Received SIGINT, shutting down gracefully. Send again to force
5 minutes between when signal is received before I forced unclean shutdown
2020-07-31 10:08:42 [scrapy.crawler] INFO: Received SIGINT twice, forcing unclean shutdown
Note: This is a site that my current IP is blocked, so I suspect that is the root cause. However, I think it'd be a good idea to have some sort of detection in this middleware to notice that the site is blocking all requests and output this in the logs.
Also, another side note. It seems this middleware is not respecting the normal shutdown signal Scrapy sends, forcing a user to force an unclean shutdown
2020-07-31 10:03:05 [scrapy.crawler] INFO: Received SIGINT, shutting down gracefully. Send again to force
5 minutes between when signal is received before I forced unclean shutdown2020-07-31 10:08:42 [scrapy.crawler] INFO: Received SIGINT twice, forcing unclean shutdown
Note: This is a site that my current IP is blocked, so I suspect that is the root cause. However, I think it'd be a good idea to have some sort of detection in this middleware to notice that the site is blocking all requests and output this in the logs.
Logs