# Code 403, repository empty

**URL:** <https://discourse.psychopy.org/t/code-403-repository-empty/42900>\
**Category:** Online experiments\
**Created:** [November 12, 2024, 8:11am UTC](https://discourse.psychopy.org/t/code-403-repository-empty/42900 "2024-11-12T08:11:34Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![suzannex](https://avatars.discourse-cdn.com/v4/letter/s/a9a28c/32.png) [@suzannex](https://discourse.psychopy.org/u/suzannex)\
**Post date:** [November 12, 2024, 8:11am UTC](https://discourse.psychopy.org/t/code-403-repository-empty/42900/1 "2024-11-12T08:11:35Z")

</div>

URL of experiment:  
[sbruijniks/remind3](https://pavlovia.org/sbruijniks/remind3)  
[Sanne Bruijniks / remind3 · GitLab](https://gitlab.pavlovia.org/sbruijniks/remind3)

Description of the problem:  
I tried to start an experiment online (that worked last week, but I made a small change, uploaded it again). Now, I keep getting code 403 Forbidden. If I open the open it says the repository is empty… It seems something goes wrong in transferring the experiment from offline to online, I am not sure what. In the experiment itself, under settings, online, I uploaded the needed csv and jpg files

What am I missing?

---

<div class="post-metadata">

**Author:** ![suzannex](https://avatars.discourse-cdn.com/v4/letter/s/a9a28c/32.png) [@suzannex](https://discourse.psychopy.org/u/suzannex)\
**Post date:** [November 12, 2024, 8:12am UTC](https://discourse.psychopy.org/t/code-403-repository-empty/42900/2 "2024-11-12T08:12:56Z")

</div>

[N-back for remind.zip](https://discourse.psychopy.org/uploads/short-url/rWmb1DDNzL0cUxKDFY97x3AOF6A.zip) (700.4 KB)

---

<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 12, 2024, 8:17am UTC](https://discourse.psychopy.org/t/code-403-repository-empty/42900/3 "2024-11-12T08:17:23Z")

</div>

Can you still see the repository on your dashboard?

> **[Pavlovia](https://pavlovia.org/dashboard?tab=1)**
>
> The place for the wide community of researchers in the behavioural sciences to run, share, and explore experiments online

If [Sign in · GitLab](https://gitlab.pavlovia.org/sbruijniks/remind3) is empty you could look at repository / commits to see changes but it might be easier to delete the local .git files and folder and recreate it online as a new project. If there is an error when syncing from Builder, then that’s a different issue to address.

---

<div class="post-metadata">

**Author:** ![suzannex](https://avatars.discourse-cdn.com/v4/letter/s/a9a28c/32.png) [@suzannex](https://discourse.psychopy.org/u/suzannex)\
**Post date:** [November 12, 2024, 8:33am UTC](https://discourse.psychopy.org/t/code-403-repository-empty/42900/4 "2024-11-12T08:33:56Z")

</div>

So at my dashboard I see the versions I uploaded from Psychopy.  
At first I could synchronize, but I cannot anymore, it gives an internal error.  
It seems its gotten more messed up when I tried to create new experiment versions and see if this would work…

If I delete every experiment from my dashboard and now create a new project from the builder it cannot synchronize anymore and gives the error below…

I feel maybe I just need to create a new Pavlovia account and start over…?

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 415282.’

---

<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 12, 2024, 9:48am UTC](https://discourse.psychopy.org/t/code-403-repository-empty/42900/5 "2024-11-12T09:48:05Z")

</div>

The issue is that your local folder still has a .git folder and/or file. If you can’t find it, make a new local folder and copy only those files you created into it (psyexp, spreadsheet and any stimuli). Then sync from there.

---

<div class="post-metadata">

**Author:** ![suzannex](https://avatars.discourse-cdn.com/v4/letter/s/a9a28c/32.png) [@suzannex](https://discourse.psychopy.org/u/suzannex)\
**Post date:** [November 12, 2024, 11:45am UTC](https://discourse.psychopy.org/t/code-403-repository-empty/42900/6 "2024-11-12T11:45:00Z")

</div>

It works, thanks! Stupid mistake. Many thanks!!  
I can open the experiment now, but unfortunately I get an error while the experiments runs just in the Builder.  
Had this to do with translation from the Builder to the online setting?

Unfortunately we encountered the following error:

- **ReferenceError: msg is not defined**

Try to run the experiment again. If the error persists, contact the experiment designer.  
[N-back for remindonlinesequential.zip](https://discourse.psychopy.org/uploads/short-url/o1SiJ5lj8J43YphtsLD7C8hBjyB.zip) (1.9 MB)

> **[Pavlovia](https://pavlovia.org/sbruijniks/remind_nback)**
>
> The place for the wide community of researchers in the behavioural sciences to run, share, and explore experiments online

---

<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 12, 2024, 11:50am UTC](https://discourse.psychopy.org/t/code-403-repository-empty/42900/7 "2024-11-12T11:50:13Z")

</div>

> [@suzannex](#):
>
> ReferenceError: msg is not defined

Without looking at your code I suspect you are setting msg in and if else clause. Put `msg = ''` in Begin Experiment

---

<div class="post-metadata">

**Author:** ![suzannex](https://avatars.discourse-cdn.com/v4/letter/s/a9a28c/32.png) [@suzannex](https://discourse.psychopy.org/u/suzannex)\
**Post date:** [November 26, 2024, 2:46pm UTC](https://discourse.psychopy.org/t/code-403-repository-empty/42900/8 "2024-11-26T14:46:35Z")

</div>

Dear wakecarter,

Thanks for thinking along. It is defined in the begin experiment tab… so I am not sure what to do… the task works in an offline setting, so it seems to be something in the translation to Pavlovia, but not sure what and why.  
Do you have any idea (where I have to search for…)?

Kind regards, Sanne
