Forums

ConnectionRefusedError: [Errno 111] Connection refused when trying to connect to zoom.com API

I'm getting the following error when trying to run my python code in pythonanywhere.com. It's failing when trying to connect to the zoom.com API. This runs fine on my computer. Is zoom.com blacklisted on your servers?

Traceback (most recent call last): File "/home/gtfcompliance/webinar_audits/zoom_scrape.py", line 33, in <module> conn.request("GET", "/v2/users?status=active", headers=headers) File "/usr/local/lib/python3.9/http/client.py", line 1253, in request self._send_request(method, url, body, headers, encode_chunked) File "/usr/local/lib/python3.9/http/client.py", line 1299, in _send_request self.endheaders(body, encode_chunked=encode_chunked) File "/usr/local/lib/python3.9/http/client.py", line 1248, in endheaders self._send_output(message_body, encode_chunked=encode_chunked) File "/usr/local/lib/python3.9/http/client.py", line 1008, in _send_output self.send(msg) File "/usr/local/lib/python3.9/http/client.py", line 948, in send self.connect() File "/usr/local/lib/python3.9/http/client.py", line 1415, in connect super().connect() File "/usr/local/lib/python3.9/http/client.py", line 919, in connect self.sock = self._create_connection( File "/usr/local/lib/python3.9/socket.py", line 843, in create_connection raise err File "/usr/local/lib/python3.9/socket.py", line 831, in create_connection sock.connect(sa) ConnectionRefusedError: [Errno 111] Connection refused

Free accounts have limited internet access. Take a look at https://www.pythonanywhere.com/whitelist/