Gitlab Authentification Error: 401: invalid_token

If this template helps then use it. If not then just delete and start from scratch.

OS : MacOS Sequoia 15.7.3
PsychoPy version: 2023.2.3 Py 3.8
Standard Standalone Installation? yes
Do you want it to also run locally? no
What are you trying to achieve?:

I wanted to change my experiment locally and sync it with Gitlab.

What specifically went wrong when you tried that?:
I just open Psychopy on my Mac and this error message appeared:

I noticed then that I was not logged in to my Pavlovia account anymore on pscyhopy Builder (1st time this has ever happened). I can see when I click on Pavlovia.org / User on Builder than my Pavlovia account is there but when I try to Sync, it tells me than I am not logged in to Pavlovia via Psychopy. If I try to login, I got this message:

I have tried several things:

  • Create a new token access to the experiment folder on Gitlab
  • Adding an SSH key to access Gitlab
  • To first log in to Pavlovia before opening Psychopy

Should I try to download the last version of Psychopy? I don’t really think that it is the problem because everything was working perfectly fine before the Christmas break. I tried the previous version of my experiment online (without the changes that I just added) and it works fine.

Does anyone have an idea of what is going on? Because I have no idea why I get these errors/messages now when two weeks ago everything was fine.

Thank you in advance for your help.

Raph

Hi there,

As a Pavlovia user, you should have had an email from Open Science Tools about this and there’s a post about it here

Basically, you need to update PsychoPy to 2025.2.3 because the server has been updated and that required a new authentication method.

(Also, you shouldn’t really run PsychoPy from within the disk image - better to copy it to your Applications folder or similar - but this isn’t related to the error you’re seeing).

Best wishes,
Jon

I have just had an email from one of my students with this error. She couldn’t log in to Pavlovia on her phone but then was able to with a difference device (an iPad). @apitiot has told me that the error is typically because the browser cache needs to be cleared, so please could you try that?

Dear Jon,

Thank you very much for your response. I totally missed this information and after updating to the latest version of Psychopy, everything works fine. Thank you again for this!