# Unable to upload psychopy experiment to Pavlovia - probably related to js file

**URL:** <https://discourse.psychopy.org/t/unable-to-upload-psychopy-experiment-to-pavlovia-probably-related-to-js-file/33746>\
**Category:** Online experiments\
**Tags:** online, pavlovia\
**Created:** [March 10, 2023, 2:18am UTC](https://discourse.psychopy.org/t/unable-to-upload-psychopy-experiment-to-pavlovia-probably-related-to-js-file/33746 "2023-03-10T02:18:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![camila\_maura](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/camila_maura/32/37301_2.png) [@camila\_maura](https://discourse.psychopy.org/u/camila_maura)\
**Post date:** [March 10, 2023, 2:18am UTC](https://discourse.psychopy.org/t/unable-to-upload-psychopy-experiment-to-pavlovia-probably-related-to-js-file/33746/1 "2023-03-10T02:18:52Z")

</div>

URL of experiment:[Pavlovia](https://pavlovia.org/nutellarocknroll/sdfghjkl)

Description of the problem: The experiment runs perfectly on the builder but I cannot make it run online! At first, I got a blank page, now I get a 403 forbidden error. My hypothesis is that the problem has something to do with the js file, which I can’t generate in Psychopy - i get the following error when I try to generate the js file:

Traceback (most recent call last):  
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/app/builder/builder.py”, line 804, in fileExport  
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/scripts/psyexpCompile.py”, line 71, in generateScript  
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/scripts/psyexpCompile.py”, line 245, in compileScript  
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/scripts/psyexpCompile.py”, line 217, in \_makeTarget  
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/experiment/\_experiment.py”, line 286, in writeScript  
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/experiment/components/settings/ **init**.py”, line 857, in writeInitCodeJS  
IsADirectoryError: [Errno 21] Is a directory: ‘/Users/camilamaura/Library/CloudStorage/GoogleDrive-camila.maura@pucp.edu.pe/.shortcut-targets-by-id/1Zgn3XETIGSXalE-dTI7qlBcYHY-qYB82/Gifted MSI/Experimento de los dos flashes/dfi-master/index.html’

---

<div class="post-metadata">

**Author:** ![JensBoelte](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/jensboelte/32/9060_2.png) [@JensBoelte](https://discourse.psychopy.org/u/JensBoelte)\
**Post date:** [March 10, 2023, 8:12am UTC](https://discourse.psychopy.org/t/unable-to-upload-psychopy-experiment-to-pavlovia-probably-related-to-js-file/33746/2 "2023-03-10T08:12:19Z")

</div>

Hello Camila

is index.html locally and remote a folder? If so, delete the folder and try to resnyc. index.html must be a file.

Best wishes Jens

---

<div class="post-metadata">

**Author:** ![Nicole\_Doherty](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/nicole_doherty/32/36890_2.png) [@Nicole\_Doherty](https://discourse.psychopy.org/u/Nicole_Doherty)\
**Post date:** [March 11, 2023, 11:42pm UTC](https://discourse.psychopy.org/t/unable-to-upload-psychopy-experiment-to-pavlovia-probably-related-to-js-file/33746/3 "2023-03-11T23:42:07Z")

</div>

I had a similar issue that I think was caused by having reorganized my local files at one point while building my experiment, which caused a permissions issue that made the JS inaccessible. I solved it by starting a whole new experiment and copy/pasting each component into it.

I also read that if your experiment is stored in a cloud-based folder, it will cause a similar issue. So if you’re going to try this method, create your new folder in your actual computer only, such as in the C: drive.
