Internal error when synchronizing Psychopy to Pavlovia

Description of the problem:
My experiment runs perfectly offline, but when I tried to synchronize it to Pavlovia, the internal error occurs. I’ve tried several methods, including turning my Mac into safe mode, uninstalling the app and downloading it again, neither of them work :frowning: The following is the report of my error:

version of Psychopy: v2023.2.3

Traceback (most recent call last):
  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/app/pavlovia_ui/menu.py”, line 114, in onSync
  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/app/pavlovia_ui/project.py”, line 854, in syncProject
  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/app/pavlovia_ui/sync.py”, line 47, in sync
  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/projects/pavlovia.py”, line 844, in sync
  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/projects/pavlovia.py”, line 1031, in firstPush
  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/git/cmd.py”, line 542, in <lambda>
  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/git/cmd.py”, line 1005, in _call_process
  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/git/cmd.py”, line 822, in execute
git.exc.GitCommandError: Cmd(‘/Applications/PsychoPy.app/Contents/Resources/git-core/git’) failed due to: exit code(1)
  cmdline: /Applications/PsychoPy.app/Contents/Resources/git-core/git push -u https://oauth2:dc476ddf6ed501c9b394dd75004e15c6c620ccb07c597d161b4f9305d3122315@gitlab.pavlovia.org/Kejia039/hvot master
  stderr: ‘warning: redirecting to https://gitlab.pavlovia.org/Kejia039/hvot.git/
error: RPC failed; HTTP 500 curl 56 The requested URL returned error: 500
fatal: the remote end hung up unexpectedly
fatal: the remote end hung up unexpectedly
Everything up-to-date’

Great thanks for your help!

Do you have large files?

No, there’s no large file. The files are not over 1MB.

How big is the experiment folder (including subfolders) in total?

20.4MB in total. There’s a lib folder containing several psychojs documents and it is 18.3MB. Is this folder autogenerated by Psychopy?

The lib folder should be ignored so long as you haven’t edited .gitignore. It was downloaded when you piloted the experiment locally in your browser. That leaves 2.1MB. Please could you try reducing it to under 1MB total and then syncing, then adding most the rest of the files back in (possibly in two syncs)?

Good News! The experiment has successfully synced to Pavlovia. All the materials are now in gitlab. However, when I come to the dashboard and try to pilot the experiment, a ’ 403 Forbidden’ occurs. How to solve this problem? Thanks a lot for your great help!

Does your repository contain index.html and two JS files?

No. There are only my stimuli and condition files

What value do you have for Export HTML in Experiment Settings / Online ?

On sync should create those files when you sync. If it doesn’t there should be error messages.

It is on Sync. I sync it again and it is successful. But there’s no other file created for me (except readme.md and .gitignore.)


Are you being prompted for a commit message? Try making a small change to your Builder file and try again.

Also, you could try exporting manually

Also, you could try making a new test experiment and see if that syncs correctly.

I export html manually and the experiment now runs successfully online. Great thanksss for your help!!!

Hi, now I could run the experiment online, but there’s a problem running offline. On the first page I set a keyboard component to press ‘space’ to jump to the next page, but it doesn’t work. However it works perfectly online. Don’t know if there is any wrong with the offline setting.

problem sovled. I changed the input to ‘ioHub’