Closed heylouiz closed 3 years ago
Hi @heylouiz much appreciated for the issue report! It is assumed that the issue comes from some mistakes in the implement. I have proposed a pull request for fixing that (link above).
Please wait for some time before the maintainers review and merge that PR. In case you need an immediate fix in your project, you might temporarily use that branch in the PR (pip install git+https://github.com/org-name/project-name.git@branch-name
) as a workaround.
Today I observed this in one project I'm working on. If it becomes recurrent I will point to @starrify temporarily solution.
I am getting
AttributeError: Response.meta not available, this response is not tied to any request
when receiving Crawlera auth error responses.The problem occurs in this line: https://github.com/scrapy-plugins/scrapy-crawlera/blob/master/scrapy_crawlera/middleware.py#L204
Here is the error trace:
How I've tested:
I've started a flask server in a VPS with the following code:
Then I created a virtualenv, installed scrapy_crawlera and ran the following spider:
There is nothing else configured, I've run with the command:
scrapy runspider testspider.py
Versions used in this test: