New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot retry requests in scrapy parse
#3095
Comments
Hi, |
Hi @nctl144, the easiest way for us to help you is that you fork the repository, create a branch in which you try to fix the bug, then open a PR so we can give you some feedback and guidance while actually looking at code. For fixing the bug, first try to reproduce the issue on your machine (there is a minimum example described above). Once you got that, you can start hacking on Scrapy's code. You will probably need to find a way to restore a |
Thank you so much for your help @jdemaeyer . I'll work on that as soon as possible! |
I just made a first PR! Can you please let me know if this solves the problem correctly? @jdemaeyer. Thank you! PR #3129 |
This spider:
works fine with
scrapy crawl httpbin.org
, butscrapy parse "https://httpbin.org/" -d 2
fails with the following traceback:Explicitly also replacing the request callback (
yield response.request.replace(dont_filter=True, callback=self.parse)
) fixes the issue.This is possibly caused by not properly cleaning up this and this line.
Shout-out to @VMRuiz for finding this. ;)
The text was updated successfully, but these errors were encountered: