forked from chihacknight/civic-json-worker
-
Notifications
You must be signed in to change notification settings - Fork 53
Open
Description
it appears that sometimes the meetup API returns an error, and it crashes the updating process.
INFO:root:Gathering all of Code for Tulsa's events.
Traceback (most recent call last):
File "run_update.py", line 1380, in <module>
main(org_name=org_name, org_sources=org_sources)
File "run_update.py", line 1314, in main
members = get_meetup_count(organization, identifier)
File "run_update.py", line 179, in get_meetup_count
response = got.json()
File "/app/.heroku/python/lib/python2.7/site-packages/requests/models.py", line 805, in json
return complexjson.loads(self.text, **kwargs)
File "/app/.heroku/python/lib/python2.7/json/__init__.py", line 338, in loads
return _default_decoder.decode(s)
File "/app/.heroku/python/lib/python2.7/json/decoder.py", line 365, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/app/.heroku/python/lib/python2.7/json/decoder.py", line 383, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
We should
- be conscious of any meetup rate limits
- handle errors without crashing the run
- log a useful error message when this breaks
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels