OS (e.g. Win10):
PsychoPy version (e.g. 2024.2.4 Py 3.8):
Hi,
I’m having a recurring authentication problem with Pavlovia in PsychoPy 2026.2.4 on Windows.
Every day, when I try to use my Pavlovia project, I get the following error:
Traceback (most recent call last):
File "C:\Program Files\PsychoPy\lib\site-packages\psychopy_app\ribbon.py", line 917, in onClick
project = self.GetTopLevelParent().project
File "C:\Program Files\PsychoPy\lib\site-packages\psychopy_app\builder\builder.py", line 1692, in project
return pavlovia.getProject(self.filename)
File "C:\Program Files\PsychoPy\lib\site-packages\psychopy\projects\pavlovia.py", line 1593, in getProject
session = getCurrentSession()
File "C:\Program Files\PsychoPy\lib\site-packages\psychopy\projects\pavlovia.py", line 1707, in getCurrentSession
_existingSession.doRefreshToken()
File "C:\Program Files\PsychoPy\lib\site-packages\psychopy\projects\pavlovia.py", line 526, in doRefreshToken
raise gitlab.GitlabAuthenticationError(
gitlab.exceptions.GitlabAuthenticationError: invalid_grant: The provided authorization grant is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued to another client.
The workaround is to close PsychoPy, delete the pavlovia folder from:
%APPDATA%\PsychoPy3
and then log into Pavlovia again. This fixes the problem temporarily, but the exact same error comes back the next day.
Is anyone else experiencing this? In particular, does anyone know why the refresh token is becoming invalid again after approximately one day, or whether there is a known issue with the current PsychoPy/Pavlovia/GitLab authentication?
I’d appreciate any advice on a permanent fix, as having to delete the Pavlovia credentials and log in again every day is becoming quite disruptive.
Thanks!