Pavlovia study suddenly unable to download a js resource

Hi, yesterday I started piloting a study on Pavlovia and I managed to run a few pilots successfully. Everything was working perfectly fine till yesterday evening.
This morning, I created again a new link for piloting, and now I get the following error whenever I open the link:

I do have a QUEST staircase running within the study, but I never ever got this error before, even when I was piloting just the staircase alone. I wonder what this error is, why it is happening now and how I could possibly fix it, any help would be very much appreciated.

Many thanks for your time.

PS Forgot to add that now, whenever I am trying to just pilot on my browser locally from psychopy, I often get an “Psychopy encountered an internal error” and something that seem related to issues with connections to an SSL verification error (However, my account is correctly logged in pavlovia)

This is the full error just in case:

Traceback (most recent call last):
File “urllib3/connectionpool.pyc”, line 466, in _make_request
File “urllib3/connectionpool.pyc”, line 1095, in validate_conn
File “urllib3/connection.pyc”, line 730, in connect
File “urllib3/connection.pyc”, line 909, in ssl_wrap_socket_and_match_hostname
File “urllib3/util/ssl
.pyc”, line 469, in ssl_wrap_socket
File “urllib3/util/ssl
.pyc”, line 513, in _ssl_wrap_socket_impl
File “ssl.pyc”, line 500, in wrap_socket
File “ssl.pyc”, line 1040, in _create
File “ssl.pyc”, line 1309, in do_handshake
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1131)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “urllib3/connectionpool.pyc”, line 789, in urlopen
File “urllib3/connectionpool.pyc”, line 490, in _make_request
urllib3.exceptions.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1131)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/requests/adapters.py”, line 667, in send
File “urllib3/connectionpool.pyc”, line 843, 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-2024.2.4.css (Caused by SSLError(SSLCertVerificationError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1131)’)))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/app/builder/builder.py”, line 1637, in onPavloviaDebug
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/app/runner/runner.py”, line 695, in runOnlineDebug
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/app/runner/runner.py”, line 708, in startServer
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/app/runner/runner.py”, line 763, in getPsychoJS
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/requests/api.py”, line 73, in get
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/requests/api.py”, line 59, in request
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/requests/sessions.py”, line 589, in request
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/requests/sessions.py”, line 703, in send
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/requests/adapters.py”, line 698, in send
requests.exceptions.SSLError: HTTPSConnectionPool(host=‘lib.pavlovia.org’, port=443): Max retries exceeded with url: /psychojs-2024.2.4.css (Caused by SSLError(SSLCertVerificationError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1131)’)))

Just to add, I’m trying to run older versions of the task with the QUEST staircase implemented and those give me the same exact error..so I’m quite sure it’s not something I changed as those were working perfectly fine as well and never gave me this error :frowning: Not sure if anyone else is experiencing the same issue.

PS Forgot to add that now, whenever I am trying to just pilot on my browser locally from psychopy, I often get an “Psychopy encountered an internal error” and something that seem related to issues with connections to an SSL verification error (However, my account is correctly logged in pavlovia)
@gjd8009

I’m having the same error. See thread here: Unable to "pilot in browser" — SSL certificate error

Oh no! Yes it seems exactly the same issue, perhaps that’s what is causing the js resource error when piloting also from pavlovia, in addition to the SSL error when piloting online from psychopy. I now get this error with any kind of former version that was perfectly working online…was it also for you that everything was working fine and then it suddendly stopped yesterday? I wonder what this is, because I do not use proxy whatsoever, I did not change anything in my settings since this issue started…is the same for you?

The last time I’d used psychopy I wasn’t having this issue, but that was a few months ago.

I see, for me it really happened overnight, on Thursday. Until Wednesday night I was able to pilot without any issues.
I’m still experiencing the issue today. I am not sure whether the SSL error and the " unable to download resource: https://lib.pavlovia.org/vendors/jsQUEST.min.js(https://lib.pavlovia.org/vendors/jsQUEST.min.js)" are related, but I suspect they are..

If anyone has any idea what this issue could be related to or how we could fix it, it would be immensely appreciated, as I don’t really know what to do :frowning:

Is this piloting in the local browser? What happens if you pilot on Pavlovia? What version of PsychoPy are you using? Do you have a QUEST staircase?

Hi, thank you so much for your reply.
I’m using version2024.2.4.
I was piloting both locally and via Pavlovia. I get the same error in both cases, “unable to download resource…” whether I pilot locally or on Pavlovia (in pilot mode).
In addition to this, whenever I try to synch a study, I get the SSL error, so I cannot upload any new study/version on Pavlovia. I wonder if the two things are related.
Also, yes, I do have a QUEST staircase implemented within the task. This was all working perfectly fine, both locally or on Pavlovia, until Wednesday evening.

Dear all,

The issue had to do with our latest SSL certificate (for secure https connections) not correctly including the lib.pavlovia.org domain, despite the use of a wild card.
I have fixed that issue and the above-mentioned libraries are now correctly loading.
With my apologies for the mishap!

Alain

1 Like

Hi, thank you so much: the pilot now works again on Pavlovia, however unfortunately I still get an error when synching from psychopy to pavlovia/gitlab, please see the error traceback:

Traceback (most recent call last):
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/app/builder/builder.py”, line 1612, in onPavloviaSync
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/app/pavlovia_ui/project.py”, line 854, in syncProject
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/projects/pavlovia.py”, line 912, in sync
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/projects/pavlovia.py”, line 1149, in firstPush
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/projects/pavlovia.py”, line 1315, in commit
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/git/cmd.py”, line 986, in
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/git/cmd.py”, line 1598, in _call_process
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/git/cmd.py”, line 1388, in execute
git.exc.GitCommandError: Cmd(‘git’) failed due to: exit code(1)
cmdline: git commit -m Push initial project files
stdout: ‘On branch master
nothing to commit, working tree clean’

it seems that also the synch is back working now. I logged in and out of pavlovia/closed/reopened psychopy twice. Just leaving it here in case it might be useful to someone else :slight_smile:

1 Like

@apitiot: Can confirm this now works for me. Thanks!

Hi! Could you verify the links to the libraries? They are not working for me