# Failed to Run Js for local debug and to run or pillot experiment

**URL:** <https://discourse.psychopy.org/t/failed-to-run-js-for-local-debug-and-to-run-or-pillot-experiment/43549>\
**Category:** Online experiments\
**Tags:** pavlovia\
**Created:** [January 18, 2025, 4:28pm UTC](https://discourse.psychopy.org/t/failed-to-run-js-for-local-debug-and-to-run-or-pillot-experiment/43549 "2025-01-18T16:28:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rebecca.sv](https://avatars.discourse-cdn.com/v4/letter/r/e495f1/32.png) [@rebecca.sv](https://discourse.psychopy.org/u/rebecca.sv)\
**Post date:** [January 18, 2025, 4:28pm UTC](https://discourse.psychopy.org/t/failed-to-run-js-for-local-debug-and-to-run-or-pillot-experiment/43549/1 "2025-01-18T16:28:42Z")

</div>

URL of experiment: not allowed to share the experiment

Description of the problem:  
Hey everyone, I managed to push my experiment to pavlovia. However, piloting and running is not possible because of an 403 forbidden nginx error. I then started to go on PsychoPy to Run Js for local debug. When doing the latter, I get the following error message: Traceback (most recent call last):  
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\app\runner\runner.py”, line 670, in runOnlineDebug  
self.getPsychoJS()  
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\app\runner\runner.py”, line 705, in getPsychoJS  
libPath = str(self.currentFile.parent / self.outputPath / ‘lib’)  
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\app\runner\runner.py”, line 891, in outputPath  
return self.currentExperiment.settings.params[‘HTML path’].val  
AttributeError: ‘NoneType’ object has no attribute ‘settings’

My PsychoPy version is PsychoPy3 v2021.1.1 because with the newest version I could not push the experiment to Pavlovia at all. I am using the PsychoPy Coder. Thank you in advance!!

---

<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:** [January 18, 2025, 4:42pm UTC](https://discourse.psychopy.org/t/failed-to-run-js-for-local-debug-and-to-run-or-pillot-experiment/43549/2 "2025-01-18T16:42:45Z")

</div>

If you want to run the experiment online, I would recommend that you recreate it using Builder.

> [@Wakefield's Daily Tips](https://discourse.psychopy.org/t/wakefields-daily-tips/43371/19):
>
> Builder isn’t Coder I strongly discourage the use of PsychoPy Coder for the creation of psychology experiments because Builder is easier to debug, share with others and translate into PsychoJS for use online. If you already have an experiment written in Coder, pasting the code into Builder code components is not sufficient to turn it into a Builder experiment. The logic of how to arrange an experiment is slightly different because of the way Builder works with components, routines and loops. F…

---

<div class="post-metadata">

**Author:** ![rebecca.sv](https://avatars.discourse-cdn.com/v4/letter/r/e495f1/32.png) [@rebecca.sv](https://discourse.psychopy.org/u/rebecca.sv)\
**Post date:** [January 19, 2025, 10:11am UTC](https://discourse.psychopy.org/t/failed-to-run-js-for-local-debug-and-to-run-or-pillot-experiment/43549/3 "2025-01-19T10:11:36Z")

</div>

Thanks for the reply! Unfortunatly I have to do everything with the Coder.

---

<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:** [January 19, 2025, 10:28am UTC](https://discourse.psychopy.org/t/failed-to-run-js-for-local-debug-and-to-run-or-pillot-experiment/43549/4 "2025-01-19T10:28:26Z")

</div>

Is that a course requirement?

If can only use Coder then you won’t be able to run your experiments online without a lot of effort that PsychoPy users on this forum won’t be able to help with.

All I can suggest is to look at the JavaScript files created by Builder experiments that do similar things to get an idea of the code involved.

Alternatively, would jsPsych be acceptable?
