# Unhandled internal error when syncing to Pavlovia

**URL:** <https://discourse.psychopy.org/t/unhandled-internal-error-when-syncing-to-pavlovia/21113>\
**Category:** Builder\
**Tags:** online, pavlovia\
**Created:** [March 9, 2021, 11:21am UTC](https://discourse.psychopy.org/t/unhandled-internal-error-when-syncing-to-pavlovia/21113 "2021-03-09T11:21:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Helena\_Blackmore](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/helena_blackmore/32/14050_2.png) [@Helena\_Blackmore](https://discourse.psychopy.org/u/Helena_Blackmore)\
**Post date:** [March 9, 2021, 11:21am UTC](https://discourse.psychopy.org/t/unhandled-internal-error-when-syncing-to-pavlovia/21113/1 "2021-03-09T11:21:36Z")

</div>

I created an experiment in the Psychopy builder (consisting of some instructions, simple staircase and edited decision-making task from the Psychopy demo). All works as expected on my computer, but I cannot sync/upload the experiment online: Unhandled internal error. I can’t figure out what is the problem. Could anybody help, please?

This is the error I am getting:

Traceback (most recent call last):  
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\app\builder\builder.py”, line 1221, in onPavloviaSync  
self.fileExport(htmlPath=htmlPath)  
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\app\builder\builder.py”, line 719, in fileExport  
target=“PsychoJS”)  
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\scripts\psyexpCompile.py”, line 73, in generateScript  
compileScript(infile=exp, version=None, outfile=filename)  
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\scripts\psyexpCompile.py”, line 242, in compileScript  
\_makeTarget(thisExp, outfile, targetOutput)  
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\scripts\psyexpCompile.py”, line 214, in \_makeTarget  
script = thisExp.writeScript(outfile, target=targetOutput, modular=True)  
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\experiment\_experiment.py”, line 236, in writeScript  
entry.writeInitCodeJS(script)  
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\experiment\loops.py”, line 602, in writeInitCodeJS  
self.loop.writeInitCodeJS(buff)  
AttributeError: ‘StairHandler’ object has no attribute ‘writeInitCodeJS’

---

<div class="post-metadata">

**Author:** ![wakecarter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/wakecarter/32/5753_2.png) [@wakecarter](https://discourse.psychopy.org/u/wakecarter)\
**Post date:** [March 9, 2021, 12:01pm UTC](https://discourse.psychopy.org/t/unhandled-internal-error-when-syncing-to-pavlovia/21113/2 "2021-03-09T12:01:44Z")

</div>

I don’t believe that the staircase has been implemented online yet.

> [@Builder-\>online-\>staircases?](https://discourse.psychopy.org/t/builder-online-staircases/5021/12):
>
> As an update for the curious, QuestPlus is still in development by @richard I believe In the meantime, @Becca has a live demo of how to get this working using a code component. You could fork that to get started on your own:

---

<div class="post-metadata">

**Author:** ![Helena\_Blackmore](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/helena_blackmore/32/14050_2.png) [@Helena\_Blackmore](https://discourse.psychopy.org/u/Helena_Blackmore)\
**Post date:** [March 9, 2021, 8:08pm UTC](https://discourse.psychopy.org/t/unhandled-internal-error-when-syncing-to-pavlovia/21113/3 "2021-03-09T20:08:51Z")

</div>

Thank you!
