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?
to your account
Since version 2.0 cb_kwargs has appeared which I use to transfer data to callback.
Now need to handle errors in errback. How to forward data there (logically there should be eb_kwargs, but there is none)?
The text was updated successfully, but these errors were encountered:
The original PR (#3563) briefly mentions this. We decided there was no need, since the original request is available in the errback's failure, so the callback arguments can be accessed through failure.request.cb_kwargs
Sorry, something went wrong.
Thanks for the answer. Did as you showed. Perhaps you need to mention this in the documentation?
I guess it makes sense to be more specific about this in https://docs.scrapy.org/en/latest/topics/request-response.html#scrapy.http.Request.cb_kwargs
@Gallaecio I have updated the docs. Can you please review the pull request and provide feedback? Thanks.
Successfully merging a pull request may close this issue.