Skip to content

KeyError due to API change #8

@foo-git

Description

@foo-git

At first it looks like the API output has changed and the program cannot deal correctly with the output. After executing the program, it fails with this error message:

 Traceback (most recent call last):
  File "/x/rewe_discounts", line 193, in <module>
    categories = data['_meta']['categories']
 KeyError: '_meta'

However the API url (https://mobile-api.rewe.de/products/offer-search) yields a 500 error, which looks like an internal error of the rewe api. Not sure if I can fix this:

errorReason: "status - 500 by calling Endpoint Service, because of reason: result.data.map is not a function}"

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions