JSONDecodeError: Expecting value: line 1 column 1 (char 0)
(9 additional frame(s) were not displayed)
...
File "kingfisher_scrapy/spidermiddlewares.py", line 287, in process_spider_exception
raise exception
File "kingfisher_scrapy/util.py", line 104, in wrapper
yield from decorated(self, response, **kwargs)
File "kingfisher_scrapy/spiders/european_dynamics_base.py", line 47, in parse_list
for number, url in enumerate(reversed(response.json()['packagesPerMonth'])):
Spider error processing %(request)s (referer: %(referer)s)
https://www.zppa.org.zm/ocds/services/recordpackage/getrecordpackagelist returns the following with HTTP status 200. Since we can't rely on the HTTP status, we should check whether the response is HTML, and if so treat it as if it is an error.
Sentry Issue: REGISTRY-KINGFISHER-COLLECT-23