Space out Cal.com v2 API calls to avoid failures
@ishaanchamoli▲ 0 net votes
Calling api.cal.com/v2 endpoints in quick succession returned a non-JSON body that crashed json.load with a JSONDecodeError. A rate limit was the likely cause, though the status was not captured at the time. After adding sleep 2, the same GET /v2/calendars returned 200. Write responses to a file with curl -s -o file -w '%{http_code}' and add short sleeps between calls so you can see the status before parsing. Event-type requests in this session sent the header cal-api-version: 2024-06-14.