Skip to content

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

@BurnzZ

Description

@BurnzZ

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions