Description of the problem: I have created an experiment in PsychoPy which is running well on my machine. I uploaded it to Pavlovia from PsychoPy however, when I press Launch on Pavlovia I get a 403 Forbidden Nginx error.
Has anyone encountered the issue before? And how did you resolve it please?
Yes, as @unagi_pie suggests, you will need to write a commit message otherwise the sync will fail. You should see an error in your console (if Coder is open), such as
File "C:\Users\lpzdb\psychopy\psychopy\app\builder\builder.py", line 2379, in onPavloviaSync
pavlovia_ui.syncProject(parent=self, project=self.project)
File "C:\Users\lpzdb\psychopy\psychopy\app\pavlovia_ui\project.py", line 477, in syncProject
outcome = showCommitDialog(parent, project)
File "C:\Users\lpzdb\psychopy\psychopy\app\pavlovia_ui\functions.py", line 150, in showCommitDialog
project.commit(commitMsg)
File "C:\Users\lpzdb\psychopy\psychopy\projects\pavlovia.py", line 950, in commit
self.repo.git.commit('-m', message)
File "C:\Program Files (x86)\Python36\lib\site-packages\git\cmd.py", line 548, in <lambda>
return lambda *args, **kwargs: self._call_process(name, *args, **kwargs)
File "C:\Program Files (x86)\Python36\lib\site-packages\git\cmd.py", line 1014, in _call_process
return self.execute(call, **exec_kwargs)
File "C:\Program Files (x86)\Python36\lib\site-packages\git\cmd.py", line 825, in execute
raise GitCommandError(command, status, stderr_value, stdout_value)
git.exc.GitCommandError: Cmd('git') failed due to: exit code(1)
cmdline: git commit -m
stderr: 'Aborting commit due to empty commit message.'```
Hi, I have been encountering the same issue. Did anyone find out an solution for it?
Might this be due to the fact that I am trying to upload the .py code file and not the .psyexp file?
Hi @rob-linguistics13, you need to have exported the HTML and JavaScript from Builder in order to have a valid PsychoJS task that will run on Pavlovia. Take a look at these guidelines for running online studies.
Thanks! I had already read the web page you posted, but I did not understand that only experiment from the Builder may be uploaded on pavlovia.org. I’ll try and see if this solves the issue.
Any files can be uploaded and from command line as well, but if you want to run a task from Pavlovia, you need the html and JavaScript that Builder exports