# Gitlab Authentification Error: 401: invalid\_token

**URL:** <https://discourse.psychopy.org/t/gitlab-authentification-error-401-invalid-token/46299>\
**Category:** Builder\
**Created:** [January 5, 2026, 10:47am UTC](https://discourse.psychopy.org/t/gitlab-authentification-error-401-invalid-token/46299 "2026-01-05T10:47:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![eril892](https://avatars.discourse-cdn.com/v4/letter/e/278dde/32.png) [@eril892](https://discourse.psychopy.org/u/eril892)\
**Post date:** [January 5, 2026, 10:47am UTC](https://discourse.psychopy.org/t/gitlab-authentification-error-401-invalid-token/46299/1 "2026-01-05T10:47:15Z")

</div>

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:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/e/3/e37b9cc1db1cb1c3058fd72c54e3b0ab17e6b3a0.jpeg)

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](http://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:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/b/6/b660519450a3af84e89b7456d5b4646cc7cd4129.png)

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

---

<div class="post-metadata">

**Author:** ![jon](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/jon/32/22_2.png) [@jon](https://discourse.psychopy.org/u/jon)\
**Post date:** [January 5, 2026, 11:18am UTC](https://discourse.psychopy.org/t/gitlab-authentification-error-401-invalid-token/46299/2 "2026-01-05T11:18:02Z")

</div>

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](https://discourse.psychopy.org/t/pavlovia-maintenance-on-27-dec-2025/46184)

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

---

<div class="post-metadata">

**Author:** ![wakecarter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/wakecarter/32/5753_2.png) [@wakecarter](https://discourse.psychopy.org/u/wakecarter)\
**Post date:** [January 5, 2026, 12:07pm UTC](https://discourse.psychopy.org/t/gitlab-authentification-error-401-invalid-token/46299/3 "2026-01-05T12:07:11Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![eril892](https://avatars.discourse-cdn.com/v4/letter/e/278dde/32.png) [@eril892](https://discourse.psychopy.org/u/eril892)\
**Post date:** [January 5, 2026, 12:36pm UTC](https://discourse.psychopy.org/t/gitlab-authentification-error-401-invalid-token/46299/4 "2026-01-05T12:36:58Z")

</div>

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!
