# Help publishing experiement to Pavlovia: unhandled internal error

**URL:** <https://discourse.psychopy.org/t/help-publishing-experiement-to-pavlovia-unhandled-internal-error/31943>\
**Category:** Online experiments\
**Tags:** pavlovia\
**Created:** [November 13, 2022, 10:02pm UTC](https://discourse.psychopy.org/t/help-publishing-experiement-to-pavlovia-unhandled-internal-error/31943 "2022-11-13T22:02:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael\_McHale](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/michael_mchale/32/36110_2.png) [@Michael\_McHale](https://discourse.psychopy.org/u/Michael_McHale)\
**Post date:** [November 13, 2022, 10:02pm UTC](https://discourse.psychopy.org/t/help-publishing-experiement-to-pavlovia-unhandled-internal-error/31943/1 "2022-11-13T22:02:35Z")

</div>

Hello,

I am trying to send my experiment to Pavlovia to host, but I keep getting the below error

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\builder\builder.py”, line 1380, in onPavloviaRun  
pavlovia\_ui.syncProject(parent=self, project=self.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 261789.’

I am not sure what to do, I have restarted PsychoPy, my computer, and Pavlovia; however the problem still persists.

---

<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:** [November 13, 2022, 11:03pm UTC](https://discourse.psychopy.org/t/help-publishing-experiement-to-pavlovia-unhandled-internal-error/31943/2 "2022-11-13T23:03:12Z")

</div>

What version of PsychoPy are you using.

Is the project number in the error message one you deleted? If not they try syncing from the Gitlab version again.

Otherwise, if you need to create a new project, make sure you delete the local .git folder.

---

<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:** [November 13, 2022, 11:06pm UTC](https://discourse.psychopy.org/t/help-publishing-experiement-to-pavlovia-unhandled-internal-error/31943/3 "2022-11-13T23:06:24Z")

</div>

See also [Help pushing experiment to Pavlovia](https://discourse.psychopy.org/t/help-pushing-experiment-to-pavlovia/31939)

---

<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:** [November 14, 2022, 10:31am UTC](https://discourse.psychopy.org/t/help-publishing-experiement-to-pavlovia-unhandled-internal-error/31943/4 "2022-11-14T10:31:54Z")

</div>

There are a few bugs causing these sorts of errors which we’re now fixing for the next version (we’re expecting to get it out early next year), but it could also be one of the following:

- Are you logged in in the app? You can check by clicking the :pavlovia_user: Pavlovia User button
- Does the account you’re logged in as have access to the project? If it’s a shared project, make sure the project owner has given you access
- Has the project been deleted or moved on Pavlovia? You can check this using the web interface

If you can find the project using the :pavlovia_search: Pavlovia Search dialog, you can try setting the local root to your experiment folder and then restarting PsychoPy. If that still doesn’t work, and the “Download” button appears rather than the Sync button (meaning the project doesn’t recognise any folder as its local root), you could download it to a clean folder and then move your local files over to this folder and try to Sync again.
