When I try to “pilot in browser” (orange play button with JS logo) on my Mac, I keep getting the error below. It looks like there is an issue with SSL certificates potentially being expired.
I have tried this in both v2025.1.0 (py3.10) and 2024.2.4 (py3.10), and on multiple macs. This happens regardless of the experiment file I’m working with, and with multiple Pavlovia experiments. I am able to connect to Pavlovia fine otherwise (e.g. via the web or via the Pavlovia buttons in the builder toolbar).
Any help would be much appreciated.
Traceback (most recent call last):
File “urllib3/connectionpool.pyc”, line 464, in _make_request
File “urllib3/connectionpool.pyc”, line 1093, in _validate_conn
File “urllib3/connection.pyc”, line 741, in connect
File “urllib3/connection.pyc”, line 920, in _ssl_wrap_socket_and_match_hostname
File “urllib3/util/ssl_.pyc”, line 460, in ssl_wrap_socket
File “urllib3/util/ssl_.pyc”, line 504, in _ssl_wrap_socket_impl
File “ssl.pyc”, line 513, in wrap_socket
File “ssl.pyc”, line 1071, in _create
File “ssl.pyc”, line 1342, in do_handshake
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1007)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “urllib3/connectionpool.pyc”, line 787, in urlopen
File “urllib3/connectionpool.pyc”, line 488, in _make_request
urllib3.exceptions.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1007)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.10/requests/adapters.py”, line 667, in send
File “urllib3/connectionpool.pyc”, line 841, in urlopen
File “urllib3/util/retry.pyc”, line 519, in increment
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host=‘lib.pavlovia.org’, port=443): Max retries exceeded with url: /psychojs-2025.1.0.css (Caused by SSLError(SSLCertVerificationError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1007)’)))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.10/psychopy/app/builder/builder.py”, line 1646, in onPavloviaDebug
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.10/psychopy/app/runner/runner.py”, line 694, in runOnlineDebug
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.10/psychopy/app/runner/runner.py”, line 707, in startServer
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.10/psychopy/app/runner/runner.py”, line 762, in getPsychoJS
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.10/requests/api.py”, line 73, in get
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.10/requests/api.py”, line 59, in request
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.10/requests/sessions.py”, line 589, in request
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.10/requests/sessions.py”, line 703, in send
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.10/requests/adapters.py”, line 698, in send
requests.exceptions.SSLError: HTTPSConnectionPool(host=‘lib.pavlovia.org’, port=443): Max retries exceeded with url: /psychojs-2025.1.0.css (Caused by SSLError(SSLCertVerificationError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1007)’)))
OS (e.g. Win10): MacOS 15.4.1
PsychoPy version 2025.1.0 (py3.01)
Standard Standalone Installation? (y/n) y