The Meetup API occasionally returns an empty response for a valid request that should return JSON. Since an empty string cannot be parsed as valid JSON, this causes an error and crashes the updating process.
I opened a support ticket about this a month ago but they don't seem to have made
any progress figuring this out.
It is very easy to reproduce by looking at the response size:
while :; do
curl -s https://api.meetup.com/2/groups\?group_urlname\=Code-for-Greenville\&key\=$MEETUP_KEY | wc -c;
done
If this method returns None, the calling method will not overwrite any
value that exists in the column. So, over time, we will get accurate
membership information still, even if not for a specific run.
The Meetup API occasionally returns an empty response for a valid request that should return JSON. Since an empty string cannot be parsed as valid JSON, this causes an error and crashes the updating process.
I opened a support ticket about this a month ago but they don't seem to have made any progress figuring this out.
It is very easy to reproduce by looking at the response size:
which returns for me:
If this method returns None, the calling method will not overwrite any value that exists in the column. So, over time, we will get accurate membership information still, even if not for a specific run.
Regression test included!