Open luanbe opened 3 years ago
Any update on this issue? I also faced the same issue today.
I got this error when my spider had a few timeout requests and spider close action was triggered but failed with following reason and later above error
File "/app/python/lib/python3.9/site-packages/spidermon/runners.py", line 29, in run
return self.run_suite()
File "/app/python/lib/python3.9/site-packages/spidermon/[runners.py](http://runners.py/)", line 45, in run_suite
[self.run](http://self.run/)_actions()
File "/app/python/lib/python3.9/site-packages/spidermon/[runners.py](http://runners.py/)", line 73, in run_actions
[self.run](http://self.run/)_monitors_failed()
File "/app/python/lib/python3.9/site-packages/spidermon/[runners.py](http://runners.py/)", line 93, in run_monitors_failed
[action.run](http://action.run/)(self.result, [self.data](http://self.data/))
TypeError: run() missing 1 required positional argument: 'data'
Hello, could you please provide more details about this so we can replicate it?
What Spidermon and Scrapy version were you using? What Reactor was installed?
I see some weird URLS like:
Are you sure the monitor and/or actions were properly configured?
Hi @VMRuiz
I actually added one "close spider" action dynamically if certain condition is fulfilled to the moniter suite that runs periodically
self.monitors_failed_actions.append(CloseSpiderAction)
We are using scrapy == 2.5.1 and spidermon == 1.17.0 versions.
and twisted reacter is installed:
from scrapy.utils.reactor import install_reactor install_reactor("twisted.internet.asyncioreactor.AsyncioSelectorReactor")
I also added two custom periodic monitors and imported monitor
I didn't find the reason that got this error.