# Unable to log into builder (2022.1.1)

**URL:** <https://discourse.psychopy.org/t/unable-to-log-into-builder-2022-1-1/28915>\
**Category:** Builder\
**Created:** [April 28, 2022, 10:16pm UTC](https://discourse.psychopy.org/t/unable-to-log-into-builder-2022-1-1/28915 "2022-04-28T22:16:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shabkr](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/shabkr/32/32052_2.png) [@shabkr](https://discourse.psychopy.org/u/shabkr)\
**Post date:** [April 28, 2022, 10:16pm UTC](https://discourse.psychopy.org/t/unable-to-log-into-builder-2022-1-1/28915/1 "2022-04-28T22:16:13Z")

</div>

Hello,

I am experiencing issues logging into my Pavlovia account via the Psychopy Builder.

**OS:** Windows 10  
**Coder or Builder?:** Builder  
**PsychoPy or PsychoJS?:** N/A  
**PsychoPy version:** 2022.1.1

**What are you trying to achieve?**  
I would like to log into my Pavlovia account in Psychopy Builder to sync projects.

**What isn’t working?**

- The log-in pop-up appears and I enter my information - within the pop-up the log in is successful as it opens my Pavlovia account. However, Psychopy throws the following error:

Traceback (most recent call last):  
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\app\pavlovia\_ui\_base.py”, line 128, in checkForLoginURL  
pavlovia.login(self.tokenInfo[‘token’])  
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\projects\pavlovia.py”, line 109, in login  
if currentSession.user is not None:  
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\projects\pavlovia.py”, line 415, in user  
self.\_user = User(self.gitlab.user.username)  
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\projects\pavlovia.py”, line 152, in **init**  
self.id = int(self.info[‘gitlabId’])  
KeyError: ‘gitlabId’

It does not register that I have logged in (does not show my account name in the menu), and I am unable to sync projects.

**What did you already try?**

- I tested a different Pavlovia account on the same computer and the log in works normally.
- I tried to use my email for log in, my current username, and my previous username.
  - with my current username and email, I log-in to the pop-up but I receive the error noted above
  - with my previous username, I am unable to log-in to the pop-up, it says “invalid login”

It might also be useful to note that my gitlab profile at [https://gitlab.pavlovia.org](https://gitlab.pavlovia.org) correctly displays my current username, but my pavlovia dashboard at [https://pavlovia.org/](https://pavlovia.org/) displays my current username in some places and the old username in other places.

Thank you for any help you can provide.

---

<div class="post-metadata">

**Author:** ![TParsons](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/tparsons/32/8301_2.png) [@TParsons](https://discourse.psychopy.org/u/TParsons)\
**Post date:** [May 12, 2022, 3:03pm UTC](https://discourse.psychopy.org/t/unable-to-log-into-builder-2022-1-1/28915/2 "2022-05-12T15:03:21Z")

</div>

If you’ve changed your username then I’d bet that’s what is confusing PsychoPy - when you login, PsychoPy sends a request to the Pavlovia server saying “give me the details for the user called…”, and the server replies. It looks like whatever the server is responding with, it’s not a set of user info, which is what causes the error. What is your new username, and what did you change it from? I can try sending the request manually to see how the server responds.

You may also find this useful:

> [@Error when I click the log in to Pavlovia button](https://discourse.psychopy.org/t/error-when-i-click-the-log-in-to-pavlovia-button/28627/5):
>
> This is a tricky one to track down as I can’t replicate the error; what the error essentially means is that, when PsychoPy looks up your username on Pavlovia, the value it gets back doesn’t include a GitLab ID, which it needs to log you in. This won’t fix the problem, but if you open the file C:\Program Files\PsychoPy\lib\site-packages\psychopy\projects\pavlovia.py in Coder and scroll to line 152, just above you could add this: assert 'gitlabId' in self.info, ( f"Co…

as you can then get a more helpful error message in the app

---

<div class="post-metadata">

**Author:** ![shabkr](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/shabkr/32/32052_2.png) [@shabkr](https://discourse.psychopy.org/u/shabkr)\
**Post date:** [May 13, 2022, 5:58pm UTC](https://discourse.psychopy.org/t/unable-to-log-into-builder-2022-1-1/28915/3 "2022-05-13T17:58:35Z")

</div>

Thank you for the suggestion. Interestingly, when I added this code I was able to successfully log in. Sorry I couldn’t get the debugging information to help pinpoint the problem!

One difference of note is that my Pavlovia profile was previously using my old username as the Gitlab link but now the link is correct. I was in communication with @jon so maybe something has changed behind the scenes which updated Pavlovia and allowed log in via Psychopy to succeed.
