Skip to content

Meetup API errors #312

@tdooner

Description

@tdooner

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

  1. be conscious of any meetup rate limits
  2. handle errors without crashing the run
  3. log a useful error message when this breaks

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