SSLCertVerificationError

Summary of what happened:

Hi, I tried to download one session of data using a script. The script was working in the other local computer but it is not working in my computer with the following error message:

SSLCertVerificationError Traceback (most recent call last) File /Applications/anaconda3/envs/ibl/lib/python3.11/site-packages/urllib3/connectionpool.py:466, in HTTPConnectionPool._make_request(self, conn, method, url, body, headers, retries, timeout, chunked, response_conn, preload_content, decode_content, enforce_content_length) [465](https://file+.vscode-resource.vscode-cdn.net/Applications/anaconda3/envs/ibl/lib/python3.11/site-packages/urllib3/connectionpool.py:465) try: --> [466](https://file+.vscode-resource.vscode-cdn.net/Applications/anaconda3/envs/ibl/lib/python3.11/site-packages/urllib3/connectionpool.py:466) self._validate_conn(conn) [467](https://file+.vscode-resource.vscode-cdn.net/Applications/anaconda3/envs/ibl/lib/python3.11/site-packages/urllib3/connectionpool.py:467) except (SocketTimeout, BaseSSLError) as e: File /Applications/anaconda3/envs/ibl/lib/python3.11/site-packages/urllib3/connectionpool.py:1095, in HTTPSConnectionPool._validate_conn(self, conn) [1094](https://file+.vscode-resource.vscode-cdn.net/Applications/anaconda3/envs/ibl/lib/python3.11/site-packages/urllib3/connectionpool.py:1094) if conn.is_closed: -> [1095](https://file+.vscode-resource.vscode-cdn.net/Applications/anaconda3/envs/ibl/lib/python3.11/site-packages/urllib3/connectionpool.py:1095) conn.connect() [1097](https://file+.vscode-resource.vscode-cdn.net/Applications/anaconda3/envs/ibl/lib/python3.11/site-packages/urllib3/connectionpool.py:1097) # TODO revise this, see https://github.com/urllib3/urllib3/issues/2791 File /Applications/anaconda3/envs/ibl/lib/python3.11/site-packages/urllib3/connection.py:652, in HTTPSConnection.connect(self) [650](https://file+.vscode-resource.vscode-cdn.net/Applications/anaconda3/envs/ibl/lib/python3.11/site-packages/urllib3/connection.py:650) server_hostname_rm_dot = server_hostname.rstrip(".") --> [652](https://file+.vscode-resource.vscode-cdn.net/Applications/anaconda3/envs/ibl/lib/python3.11/site-packages/urllib3/connection.py:652) sock_and_verified = _ssl_wrap_socket_and_match_hostname( [653](https://file+.vscode-resource.vscode-cdn.net/Applications/anaconda3/envs/ibl/lib/python3.11/site-packages/urllib3/connection.py:653) sock=sock, [654](https://file+.vscode-resource.vscode-cdn.net/Applications/anaconda3/envs/ibl/lib/python3.11/site-packages/urllib3/connection.py:654) cert_reqs=self.cert_reqs, [655](https://file+.vscode-resource.vscode-cdn.net/Applications/anaconda3/envs/ibl/lib/python3.11/site-packages/urllib3/connection.py:655) ssl_version=self.ssl_version, [656](https://file+.vscode-resource.vscode-cdn.net/Applications/anaconda3/envs/ibl/lib/python3.11/site-packages/urllib3/connection.py:656) ssl_minimum_version=self.ssl_minimum_version, [657](https://file+.vscode-resource.vscode-cdn.net/Applications/anaconda3/envs/ibl/lib/python3.11/site-packages/urllib3/connection.py:657) ssl_maximum_version=self.ssl_maximum_version, [658](https://file+.vscode-resource.vscode-cdn.net/Applications/anaconda3/envs/ibl/lib/python3.11/site-packages/urllib3/connection.py:658) ca_certs=self.ca_certs, [659](https://file+.vscode-resource.vscode-cdn.net/Applications/anaconda3/envs/ibl/lib/python3.11/site-packages/urllib3/connection.py:659) ca_cert_dir=self.ca_cert_dir, [660](https://file+.vscode-resource.vscode-cdn.net/Applications/anaconda3/envs/ibl/lib/python3.11/site-packages/urllib3/connection.py:660) ca_cert_data=self.ca_cert_data, [661](https://file+.vscode-resource.vscode-cdn.net/Applications/anaconda3/envs/ibl/lib/python3.11/site-packages/urllib3/connection.py:661) cert_file=self.cert_file, [662](https://file+.vscode-resource.vscode-cdn.net/Applications/anaconda3/envs/ibl/lib/python3.11/site-packages/urllib3/connection.py:662) key_file=self.key_file,
...
--> [698](https://file+.vscode-resource.vscode-cdn.net/Applications/anaconda3/envs/ibl/lib/python3.11/site-packages/requests/adapters.py:698) raise SSLError(e, request=request) [700](https://file+.vscode-resource.vscode-cdn.net/Applications/anaconda3/envs/ibl/lib/python3.11/site-packages/requests/adapters.py:700) raise ConnectionError(e, request=request) [702](https://file+.vscode-resource.vscode-cdn.net/Applications/anaconda3/envs/ibl/lib/python3.11/site-packages/requests/adapters.py:702) except ClosedPoolError as e: SSLError: HTTPSConnectionPool(host='[openalyx.internationalbrainlab.org](http://openalyx.internationalbrainlab.org/)', port=443): Max retries exceeded with url: /insertions/84bb830f-b9ff-4e6b-9296-f458fb41d160 (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1006)')))

Command used (and if a helper script was used, a link to the helper script or the command generated):

PASTE CODE HERE

Version:

Environment (Docker, Singularity / Apptainer, custom installation):

Data formatted according to a validatable standard? Please provide the output of the validator:

PASTE VALIDATOR OUTPUT HERE

Relevant log outputs (up to 20 lines):

PASTE LOG OUTPUT HERE

Screenshots / relevant information:


Hello,
This has been fixed overnight, thanks for reporting the issue !

Best,
Olivier