Unable to sync to Pavlovia for the first time - unhandled internal error

I have been faced with the same “unhandled internal error” multiple times while trying to access Pavlovia for the first time. Unfortunately, I cannot even provide a URL for my experiment, as despite following every guide I’ve found, I keep getting this message:

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’: []}

Has anyone faced the same problem? I haven’t used any self-written code, only builder tools. Is there a way to solve this?

What does your expInfo dialogue box look like? Have your added any punctuation into the variable names.

What is your GitLab username? There was some issue about usernames that are just digits.

There are only words in expInfo, nothing more. Like, “participant”, “occupation”, etc. One does include a space between the words, but I thought that was a possible thing.

And my username is also only letters…

I’ve managed to somehow sync the experiment by changing the version to 2020.1.1 - but that way it stopped running locally and then after loading once on Pavlovia it got stuck on initializing.

I tried creating a new folder on my PC, deleting the first project from Pavlovia and starting anew. And now it all loads perfectly but doesn’t run when I try to pilot it. It simply shows a white page. Am I missing something?

Have you checked the browser console for errors?

Now I have, thanks to your advice, but either I don’t know where to look or there are no errors. :frowning:
This is what it looks like for me. Could it be because I missed a step or relocated the files to a new folder to start again?

That doesn’t look like the console – isn’t that just your index.html file?

If you set your experiment to running, add a few credits and post the link here I can click on it and look for an error message.

It is what I see when I press f12 on my keyboard, I thought it was the console but maybe I am wrong?

Thank you! So, I am just sending you the URL for the experiment, right?
https://run.pavlovia.org/Cath/group-four - will that work?

The error seems to be with the libraries rather than your code per se.

My JS files start with:

/***************** 
 * Template Test *
 *****************/

import { PsychoJS } from './lib/core-2020.2.js';
import * as core from './lib/core-2020.2.js';
import { TrialHandler } from './lib/data-2020.2.js';
import { Scheduler } from './lib/util-2020.2.js';
import * as visual from './lib/visual-2020.2.js';
import * as sound from './lib/sound-2020.2.js';
import * as util from './lib/util-2020.2.js';
//some handy aliases as in the psychopy scripts;
const { abs, sin, cos, PI: pi, sqrt } = Math;
const { round } = util;

Yours starts with

/****************************** 
 * Images And Rhythms Iv Test *
 ******************************/

import { PsychoJS } from './lib/core-2020.js';
import * as core from './lib/core-2020.js';
import { TrialHandler } from './lib/data-2020.js';
import { Scheduler } from './lib/util-2020.js';
import * as visual from './lib/visual-2020.js';
import * as sound from './lib/sound-2020.js';
import * as util from './lib/util-2020.js';
//some handy aliases as in the psychopy scripts;
const { abs, sin, cos, PI: pi, sqrt } = Math;
const { round } = util;

So I think there’s something wrong with the way your experiment has been created. Start by switching it to inactive then active again.

What Platform Version does it tell you?

Wow, that is helpful and a little baffling at the same time! Thank you!

I have inactivated it and clicked on piloting again. It doesn’t load still but the version is 2020. Do you think I have to change it? And can the issue somehow have to do with the way my files are stored locally?
I have created a separate folder for online with all conditions’ files and stimuli. It runs fine on my laptop, so I am a bit puzzled as to how to change my resources. Or am I getting “library” wrong?

I would try starting again by putting the psyexp files plus your resources (but no files created by PsychoPy) into a newly created folder and press sync to upload as a new project.

Thank you! Unfortunately, this didn’t help either. I am at a loss what to do now.
Following some threads here on the forum, I tried playing with the folders – html, resources, etc. I tried adding additional resources (via the Online tab in psychopy), I tried changing the version. I have moved the experiment from pilot to inactive several times. I still think that I might have missed some simple step in syncing. Yesterday, I had a version that was running - just didn’t load properly.
Maybe you have some hints as to what could be missing?

I am sorry to flood so much but I deleted everything and attempted once more.
Now, it seems, I have almost the same problem but not quite: instead of just a blank screen I have the 403 Forbidden message and this in my console:

Also, now it doesn’t detect the Platform version.

For this, I have created another experiment, but this time I placed all my supporting files in a separate “resources” folder. So now the system is like this: there is an “online” folder that has html and .py files and a separate “resources” folder.