Experiment won't run in Pavlovia

Description of the problem:

I am getting the common 404 Not Found nginx error when I attempt to run the experiment on Pavlovia originating from builder. When I run the experiment through the Pavlovia dashboard via Pilot, I receive a 403 Forbidden nginx error. I have worked my way through the The PsychoPy to JS crib sheet, but I am still facing the same issue. I have cloned my files from Pavlovia and made them available here.

Any insight would be appreciated.

Hi There,

I didn’t get the same error as you but did notice some issues that could cause problems.

  1. There were a couple of syntax errors in the firs JScode component (I think additional text outside of the function was pasted over).
  2. Your movie raised an error - I noticed it is in .gp format - are you able to try converting to some of the video formats recommended on the crib sheet?

I loaded the debugged version here https://pavlovia.org/lpxrh6/sequential-dot-debug could you try forking this and seeing if it runs as you expect? (with the exception of the movie, which may need reformatting)

Thanks,
Becca

Becca,

Thanks for the insight. I’ll reformat the video files (don’t know how I overlooked that component). For some reason, though, the debugged version won’t sync to a project. I keep getting the following error code.

Traceback (most recent call last):
  File "C:\Program Files\PsychoPy3\lib\site-packages\gitlab\exceptions.py", line 242, in wrapped_f
    return f(*args, **kwargs)
  File "C:\Program Files\PsychoPy3\lib\site-packages\gitlab\mixins.py", line 204, in create
    **kwargs)
  File "C:\Program Files\PsychoPy3\lib\site-packages\gitlab\__init__.py", line 589, in http_post
    post_data=post_data, files=files, **kwargs)
  File "C:\Program Files\PsychoPy3\lib\site-packages\gitlab\__init__.py", line 495, in http_request
    response_body=result.content)
gitlab.exceptions.GitlabHttpError: 400: {'name': ["can contain only letters, digits, emojis, '_', '.', dash, space. It must start with letter, digit, emoji or '_'."], 'limit_reached': []}

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Program Files\PsychoPy3\lib\site-packages\psychopy\app\pavlovia_ui\project.py", line 146, in submitChanges
    namespace=namespace)
  File "C:\Program Files\PsychoPy3\lib\site-packages\psychopy\projects\pavlovia.py", line 329, in createProject
    raise e
  File "C:\Program Files\PsychoPy3\lib\site-packages\psychopy\projects\pavlovia.py", line 324, in createProject
    gitlabProj = self.gitlab.projects.create(projDict)
  File "C:\Program Files\PsychoPy3\lib\site-packages\gitlab\exceptions.py", line 244, in wrapped_f
    raise error(e.error_message, e.response_code, e.response_body)
gitlab.exceptions.GitlabCreateError: 400: {'name': ["can contain only letters, digits, emojis, '_', '.', dash, space. It must start with letter, digit, emoji or '_'."], 'limit_reached': []}

Hi There!

This looks like it could be a problem with the name of the project - are you using any special characters in the name? try to only use letters if possible :slight_smile:

Becca