Skip to content
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

New "update" CLI command errors out on Response.meta #73

Open
BurnzZ opened this issue Apr 27, 2020 · 0 comments
Open

New "update" CLI command errors out on Response.meta #73

BurnzZ opened this issue Apr 27, 2020 · 0 comments

Comments

@BurnzZ
Copy link
Member

BurnzZ commented Apr 27, 2020

Good Day!

We were thrilled to try out this new feature as a lot of our spiders have undergone parser revamps due to an unfortunate site change. We were trying to update it via the new CLI command: $ autounit update my_spider my_callback but we were getting this type of error:

  File "/<ommitted>/spiders/amazon.py", line 209, in parse_item
    prev_item = Item(response.meta.get('item', {}))
  File "<ommitted>/lib/python3.7/site-packages/scrapy/http/response/__init__.py", line 33, in meta
    "Response.meta not available, this response "
AttributeError: Response.meta not available, this response is not tied to any request

We were using 0.0.24 for storing the old tests while this new feature is available 0.0.26.

Cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant