# Unhandled internal error during synchronization

**URL:** <https://discourse.psychopy.org/t/unhandled-internal-error-during-synchronization/30173>\
**Category:** Online experiments\
**Created:** [July 26, 2022, 8:21am UTC](https://discourse.psychopy.org/t/unhandled-internal-error-during-synchronization/30173 "2022-07-26T08:21:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shenqidu](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/shenqidu/32/34903_2.png) [@shenqidu](https://discourse.psychopy.org/u/shenqidu)\
**Post date:** [July 26, 2022, 8:21am UTC](https://discourse.psychopy.org/t/unhandled-internal-error-during-synchronization/30173/1 "2022-07-26T08:21:40Z")

</div>

URL of experiment:

Description of the problem:  
I am using PsychoPy 2022.2.2. When attempting to sync the experiment to Pavlovia from the builder, I received the following messages:

Traceback (most recent call last):  
File “C:\Program Files\PsychoPy\lib\site-packages\gitlab\exceptions.py”, line 304, in wrapped\_f  
return f(\*args, \*\*kwargs)  
File “C:\Program Files\PsychoPy\lib\site-packages\gitlab\mixins.py”, line 112, in get  
server\_data = self.gitlab.http\_get(path, \*\*kwargs)  
File “C:\Program Files\PsychoPy\lib\site-packages\gitlab\client.py”, line 662, in http\_get  
result = self.http\_request(  
File “C:\Program Files\PsychoPy\lib\site-packages\gitlab\client.py”, line 628, in http\_request  
raise gitlab.exceptions.GitlabHttpError(  
gitlab.exceptions.GitlabHttpError: 404: 404 Project Not Found

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

Traceback (most recent call last):  
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\projects\pavlovia.py”, line 663, in project  
self.\_project = self.session.gitlab.projects.get(self.id)  
File “C:\Program Files\PsychoPy\lib\site-packages\gitlab\v4\objects\projects.py”, line 782, in get  
return cast(Project, super().get(id=id, lazy=lazy, \*\*kwargs))  
File “C:\Program Files\PsychoPy\lib\site-packages\gitlab\exceptions.py”, line 306, in wrapped\_f  
raise error(e.error\_message, e.response\_code, e.response\_body) from e  
gitlab.exceptions.GitlabGetError: 404: 404 Project Not Found

During handling of the above exception, another exception occurred:

Traceback (most recent call last):  
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\app\pavlovia\_ui\menu.py”, line 114, in onSync  
syncProject(parent=self.parent, project=self.parent.project)  
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\app\pavlovia\_ui\project.py”, line 743, in syncProject  
if not project.localRoot or not Path(project.localRoot).is\_dir():  
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\projects\pavlovia.py”, line 746, in localRoot  
if self.project.path\_with\_namespace in knownProjects:  
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\projects\pavlovia.py”, line 666, in project  
raise KeyError(f"Could not find GitLab project with id {self.id}.")  
KeyError: ‘Could not find GitLab project with id 241365.’

I would really appreciate your kind help.

---

<div class="post-metadata">

**Author:** ![Merle](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/merle/32/34813_2.png) [@Merle](https://discourse.psychopy.org/u/Merle)\
**Post date:** [July 26, 2022, 1:03pm UTC](https://discourse.psychopy.org/t/unhandled-internal-error-during-synchronization/30173/2 "2022-07-26T13:03:04Z")

</div>

Hi @shenqidu,

it seems like the syncing didn’t work because for some reason, your project couldn’t be found. I don’t know what you did, but I’d guess that it could be the case if you tried uploading your experiment for the first time and haven’t created a project on Pavlovia/Gitlab yet. If this is the case, check this post on how to create a project: [Launch your study on Pavlovia.org — PsychoPy v2022.2.2](https://www.psychopy.org/online/usingPavlovia.html)  
If you already have a project, you could also try emptying your browser’s cache & to sync again or (if this doesn’t work either) to move your experiment to a new file on your computer and to upload it as a new project.

I hope this helps! 🙂

Merle

---

<div class="post-metadata">

**Author:** ![shenqidu](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/shenqidu/32/34903_2.png) [@shenqidu](https://discourse.psychopy.org/u/shenqidu)\
**Post date:** [July 27, 2022, 3:08am UTC](https://discourse.psychopy.org/t/unhandled-internal-error-during-synchronization/30173/3 "2022-07-27T03:08:10Z")

</div>

Hi Merle, thanks for your reply!  
I initially succeeded in syncing from the Psychopy builder to the PavloviaI. But when I modified the program in builder and tried to sync again, an internal error occurred. I have my project on the PavloviaI, but the code is empty. I tried to put the folder in another location and delete online project, but the internal error still occurs. I want to try to log in to another PavloviaI account, but I can’t get the login window to pop up on the Psychopy. I don’t know how to work it out.

Thank you again for your kind help.

Yu
