-
Notifications
You must be signed in to change notification settings - Fork 10
KeyError due to API change #8
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't workinghelp wantedExtra attention is neededExtra attention is needed
Description
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}"
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinghelp wantedExtra attention is neededExtra attention is needed