Unhandled Internal Error Problem

URL of experiment: No url as my problem has to do with this.

Description of the problem:

Hi all. I am having trouble every time I attempt to run any of my experiments from Psychopy to Pavlovia. When I use the “run study online” button, an error message appears that I do not know how to solve. Any help would be appreciated.

Here is the error:

PsychoPy encountered an unhandled internal error!

Traceback (most recent call last):
File “C:\Users\Phan11\AppData\Local\PsychoPy3\lib\site-packages\psychopy\app\builder\builder.py”, line 1241, in onPavloviaRun
retVal = pavlovia_ui.syncProject(parent=self, project=self.project,
File “C:\Users\Phan11\AppData\Local\PsychoPy3\lib\site-packages\psychopy\app\builder\builder.py”, line 1318, in project
elif self.filename and pavlovia.getProject(self.filename):
File “C:\Users\Phan11\AppData\Local\PsychoPy3\lib\site-packages\psychopy\projects\pavlovia.py”, line 1082, in getProject
login(nameSpace, rememberMe=True)
File “C:\Users\Phan11\AppData\Local\PsychoPy3\lib\site-packages\psychopy\projects\pavlovia.py”, line 107, in login
currentSession.setToken(token)
File “C:\Users\Phan11\AppData\Local\PsychoPy3\lib\site-packages\psychopy\projects\pavlovia.py”, line 407, in setToken
self.startSession(token)
File “C:\Users\Phan11\AppData\Local\PsychoPy3\lib\site-packages\psychopy\projects\pavlovia.py”, line 432, in startSession
self.gitlab.auth()
File “C:\Users\Phan11\AppData\Local\PsychoPy3\lib\site-packages\gitlab_init_.py”, line 196, in auth
self.token_auth()
File "C:\Users\Phan11\AppData\Local\PsychoPy3\lib\site-packages\gitlab_init
.py", line 209, in token_auth
self.user = self.objects.CurrentUserManager(self).get()
File “C:\Users\Phan11\AppData\Local\PsychoPy3\lib\site-packages\gitlab\exceptions.py”, line 242, in wrapped_f
return f(*args, **kwargs)
File “C:\Users\Phan11\AppData\Local\PsychoPy3\lib\site-packages\gitlab\mixins.py”, line 68, in get
server_data = self.gitlab.http_get(self.path, **kwargs)
File "C:\Users\Phan11\AppData\Local\PsychoPy3\lib\site-packages\gitlab_init
.py", line 517, in http_get
streamed=streamed, **kwargs)
File "C:\Users\Phan11\AppData\Local\PsychoPy3\lib\site-packages\gitlab_init
.py", line 491, in http_request
response_body=result.content)
gitlab.exceptions.GitlabAuthenticationError: 401: 401 Unauthorized

1 Like

A similar error message also pops up as soon as I open PsychoPy builder.

Traceback (most recent call last):
File “C:\Users\Phan11\AppData\Local\PsychoPy3\lib\site-packages\psychopy\app_psychopyApp.py”, line 864, in onIdle
idle.doIdleTasks(app=self)
File “C:\Users\Phan11\AppData\Local\PsychoPy3\lib\site-packages\psychopy\app\idle.py”, line 105, in doIdleTasks
_doTask(taskName, app)
File “C:\Users\Phan11\AppData\Local\PsychoPy3\lib\site-packages\psychopy\app\idle.py”, line 142, in doTask
currentTask’func’
File “C:\Users\Phan11\AppData\Local\PsychoPy3\lib\site-packages\psychopy\app\pavlovia_ui\menu.py”, line 97, in setUser
pavlovia.getCurrentSession().setToken(token)
File “C:\Users\Phan11\AppData\Local\PsychoPy3\lib\site-packages\psychopy\projects\pavlovia.py”, line 407, in setToken
self.startSession(token)
File “C:\Users\Phan11\AppData\Local\PsychoPy3\lib\site-packages\psychopy\projects\pavlovia.py”, line 432, in startSession
self.gitlab.auth()
File "C:\Users\Phan11\AppData\Local\PsychoPy3\lib\site-packages\gitlab_init
.py", line 196, in auth
self.token_auth()
File "C:\Users\Phan11\AppData\Local\PsychoPy3\lib\site-packages\gitlab_init
.py", line 209, in token_auth
self.user = self.objects.CurrentUserManager(self).get()
File “C:\Users\Phan11\AppData\Local\PsychoPy3\lib\site-packages\gitlab\exceptions.py”, line 242, in wrapped_f
return f(*args, **kwargs)
File “C:\Users\Phan11\AppData\Local\PsychoPy3\lib\site-packages\gitlab\mixins.py”, line 68, in get
server_data = self.gitlab.http_get(self.path, **kwargs)
File "C:\Users\Phan11\AppData\Local\PsychoPy3\lib\site-packages\gitlab_init
.py", line 517, in http_get
streamed=streamed, **kwargs)
File "C:\Users\Phan11\AppData\Local\PsychoPy3\lib\site-packages\gitlab_init
.py", line 491, in http_request
response_body=result.content)
gitlab.exceptions.GitlabAuthenticationError: 401: 401 Unauthorized

That 401 code I’ve seen come by on the forum. Any posts here that might provide info that could help you out? Search results for '401 order:latest' - PsychoPy

1 Like

Hi Thomas, thanks for your answer. I will look into that, but now I also have another problem after changing the .js file on gitlab that I think prevents PsychoPy from syncing. But I think this should be a different topic to avoid confusion.

1 Like

I looked at the solutions listed in the similar posts, although none seem to have fixed my issue. It seems that almost every action I attempt to take on Psychopy that has to do with pavlovia, I get the same unhandled internal error message with small variations in the actual error message details.

Check. I see you’ve joined in the thread below. I’ll draw the attention of our database technician to that thread.

2 Likes