Long running code suddenly raising an error

I’ve been using the api via python code for months with no problems.
This morning I woke up to an error message I’ve never seen, which was obviously strange due to there being no changes in my code…
The relevant part of code that’s suddenly failing is a get-query for listing all available recordings, as so -

payload = {‘iss’: API_KEY, ‘exp’: time.time() + 60}
jwt_encoded = jwt.encode(payload, API_SECRET).decode(‘utf-8’)
conn = http.client.HTTPSConnection(“api.zoom.us”)
headers = {‘authorization’: f"Bearer {jwt_encoded}"}
conn.request(“GET”, f"/v2/users/{USER_EMAIL}/recordings?from=2010-11-22", headers=headers)

Specifically I’m getting the following error:

Traceback (most recent call last):
File “/home/autozoom3125/process_new_meetings.py”, line 406, in
update_available_zoom_recordings()
File “/home/autozoom3125/process_new_meetings.py”, line 62, in update_available_zoom_recordings
conn.request(“GET”, “/v2/users/#######/recordings?from=2010-11-22”, headers=headers)
File “/usr/lib/python3.8/http/client.py”, line 1230, in request
self._send_request(method, url, body, headers, encode_chunked)
File “/usr/lib/python3.8/http/client.py”, line 1276, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File “/usr/lib/python3.8/http/client.py”, line 1225, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File “/usr/lib/python3.8/http/client.py”, line 1004, in _send_output
self.send(msg)
File “/usr/lib/python3.8/http/client.py”, line 944, in send
self.connect()
File “/usr/lib/python3.8/http/client.py”, line 1392, in connect
super().connect()
File “/usr/lib/python3.8/http/client.py”, line 915, in connect
self.sock = self._create_connection(
File “/usr/lib/python3.8/socket.py”, line 787, in create_connection
for res in getaddrinfo(host, port, 0, SOCK_STREAM):
File “/usr/lib/python3.8/socket.py”, line 914, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

Has something changed in the api? What am I (suddenly) doing wrong?

Thanks!
Shlomi

Um, this is kind of urgent, because it’s upholding a specific functionality on a web-site serving hundreds of people daily. (Not a lot, but enough to be very important to me).
Anyone?
Thanks!

Hi @shlomi.fenster,

Thanks for reaching out about this. Based on the details you’ve shared here, it seems this error may be related to your environment/code, rather than the Zoom API specifically.

Have you tried sending the request from Postman, cURL, etc. to see if you run into any issues?

Thanks,
Will

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.