# Online experiment doesn't load

**URL:** <https://discourse.psychopy.org/t/online-experiment-doesnt-load/29909>\
**Category:** Online experiments\
**Created:** [July 7, 2022, 4:47pm UTC](https://discourse.psychopy.org/t/online-experiment-doesnt-load/29909 "2022-07-07T16:47:30Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![ymurzello](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/ymurzello/32/34379_2.png) [@ymurzello](https://discourse.psychopy.org/u/ymurzello)\
**Post date:** [July 7, 2022, 4:47pm UTC](https://discourse.psychopy.org/t/online-experiment-doesnt-load/29909/1 "2022-07-07T16:47:30Z")

</div>

URL of experiment: [Low WM Task [PsychoPy]](https://run.pavlovia.org/ym25/low-wm/index.html/)

Description of the problem: Hello! I have an experiment in the latest version 2022.2.1 that works perfectly offline but doesn’t load when trying to run it online through Pavlovia. I’ve attached the files here except the videos.

When using the Develop Tools, I can see the following errors:

```auto
psychojs-2022.2.1.css:1 Failed to load resource: the server responded with a status of 404 ()

psychojs-2022.2.1.js:1 Failed to load resource: the server responded with a status of 404 ()

psychojs-2022.2.1.css:1 Failed to load resource: the server responded with a status of 404 ()

```

I would greatly appreciate any help, advice or resources with getting it to work online!  
[Low WM Task.psyexp](https://discourse.psychopy.org/uploads/short-url/7MAz5Ez6dg0yojf6tuJiG03f4Zo.psyexp) (31.1 KB)  
[Low WM Task\_lastrun.py](https://discourse.psychopy.org/uploads/short-url/n2MqajKuBTxGWwd74nMewFkbwac.py) (31.4 KB)

---

<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:** [July 7, 2022, 7:59pm UTC](https://discourse.psychopy.org/t/online-experiment-doesnt-load/29909/2 "2022-07-07T19:59:39Z")

</div>

I think you might have created a **folder** called index.html in your repository.

---

<div class="post-metadata">

**Author:** ![ymurzello](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/ymurzello/32/34379_2.png) [@ymurzello](https://discourse.psychopy.org/u/ymurzello)\
**Post date:** [July 7, 2022, 9:32pm UTC](https://discourse.psychopy.org/t/online-experiment-doesnt-load/29909/3 "2022-07-07T21:32:55Z")

</div>

Hi @wakecarter

Thanks for your reply. When I clicked ‘Run the study online’, it successfully synchronizes and creates the folder called index.html. I deleted this folder, but it still doesn’t work online. How do I create an online version without this index.html folder?

---

<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:** [July 8, 2022, 7:09am UTC](https://discourse.psychopy.org/t/online-experiment-doesnt-load/29909/4 "2022-07-08T07:09:31Z")

</div>

I would try copying the psyexp and video files to a new folder and creating a new online project. Did you at any point in the past set Experiment Settings / Online / Output path to index.html ?

---

<div class="post-metadata">

**Author:** ![Lan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/lan/32/34289_2.png) [@Lan](https://discourse.psychopy.org/u/Lan)\
**Post date:** [July 8, 2022, 1:49pm UTC](https://discourse.psychopy.org/t/online-experiment-doesnt-load/29909/5 "2022-07-08T13:49:53Z")

</div>

Hi sorry for interrupting,

I am encountering the same problem, and I’m sure I did not change any of the settings.  
Experiment Settings / Online / Output path is blank.  
Psychopy automatically generated the index.html folder with js files in it.  
(Here I get the error 403)

After going through other posts, I have tried a few suggetstions such as switching from inactive to piloting, which didn’t work, then I tried to move the files in the index.html folder out and deleted the folder:  
 ![スクリーンショット 2022-07-08 222643](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/b/6/b6ab1a7e20722438a0e9223a456402b6e6e01519.jpeg)

Which worked (the experiment started running when I start it from pavlovia), but, although I’m not certain, seems to mess up other file paths, so after the first routine, it generated an error like this:

Unfortunately we encountered the following error:

- when setting the image of ImageStim: Odd1
- when getting the value of resource: resource/box.png
- **unknown resource**

I’m not sure whether or not this is an error due to other mistakes I’ve made (I’ve tried a few solutions provided in other posts without success) or because of the above changes, but I’m at my wits end.

---

<div class="post-metadata">

**Author:** ![ymurzello](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/ymurzello/32/34379_2.png) [@ymurzello](https://discourse.psychopy.org/u/ymurzello)\
**Post date:** [July 8, 2022, 2:06pm UTC](https://discourse.psychopy.org/t/online-experiment-doesnt-load/29909/6 "2022-07-08T14:06:04Z")

</div>

Hi @wakecarter

Similar to @Lan, I never set Experiment Settings / Online / Output path to index.html. I used the default which is blank.  
I have copied all the video files only and recreated the .psyexp multiple times but after trying to make it run online through Pavlovia, it just never works. I do have some Python code in there which I believe may not be getting properly converted to JavaScript, but there’s no way for me to test where it is breaking. Do you have any advice?

When looking at the Experiment list on my Pavlovia account, it shows “Unknown” for the Platform and “0” for the Versions

Thanks

---

<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:** [July 8, 2022, 2:44pm UTC](https://discourse.psychopy.org/t/online-experiment-doesnt-load/29909/7 "2022-07-08T14:44:46Z")

</div>

> [@ymurzello](#):
>
> When looking at the Experiment list on my Pavlovia account, it shows “Unknown” for the Platform and “0” for the Versions

Have you tried setting the experiment to piloting or active? It won’t run if the version is unknown, and it can’t be given a version / set to piloting or active if there is a serious JS error.

This page might help trace the error.  
[https://psychopy.org/online/psychoJSCodingDebugging.html](https://psychopy.org/online/psychoJSCodingDebugging.html)

---

<div class="post-metadata">

**Author:** ![ymurzello](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/ymurzello/32/34379_2.png) [@ymurzello](https://discourse.psychopy.org/u/ymurzello)\
**Post date:** [July 8, 2022, 2:52pm UTC](https://discourse.psychopy.org/t/online-experiment-doesnt-load/29909/8 "2022-07-08T14:52:08Z")

</div>

I have always set it to Piloting or Active when testing.

However, what made it display online with the previous version v202.1.4 was moving all the files out of the index.html folder and deleting that folder, so it shows “PsychoJS” as the Platform and '2022.1.4" int he Version, but I now get the following error when it tries to display the video:  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/e/6/e6b4c06c4f1e7f8f80280571c6951357a1f372fc.png)

I’m trying to understand the errors that are displayed in the Console…

---

<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:** [July 8, 2022, 2:56pm UTC](https://discourse.psychopy.org/t/online-experiment-doesnt-load/29909/9 "2022-07-08T14:56:23Z")

</div>

How are you telling it to load the video?  
[https://psychopy.org/online/resources.html#handlingonlineresources](https://psychopy.org/online/resources.html#handlingonlineresources)

---

<div class="post-metadata">

**Author:** ![ymurzello](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/ymurzello/32/34379_2.png) [@ymurzello](https://discourse.psychopy.org/u/ymurzello)\
**Post date:** [July 11, 2022, 7:01pm UTC](https://discourse.psychopy.org/t/online-experiment-doesnt-load/29909/11 "2022-07-11T19:01:03Z")

</div>

Thanks for sharing the link. I did not have any of my video files listed in the Additional Resources section in the Online tab of the Experiment Settings. However, after adding all of the videos in there, as well as trying the Resource Manager Component and Static Component, all 3 options separately and 2 and 3 together, I still get the same Error message.  
[low wm\_lastrun.py](https://discourse.psychopy.org/uploads/short-url/99E33VyhF0ektHthfblRkxgUEA8.py) (31.1 KB)  
[low wm.psyexp](https://discourse.psychopy.org/uploads/short-url/ZnTFPHKlAThzyxS4Kk6YU7KJ9D.psyexp) (33.5 KB)

I also converted my videos to the format suggested in the link, but is still doesn’t load the videos.

Is there anything else that could be causing this?

---

<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:** [July 12, 2022, 6:22am UTC](https://discourse.psychopy.org/t/online-experiment-doesnt-load/29909/12 "2022-07-12T06:22:25Z")

</div>

If you managed to try all of those variations and kept getting the same error message then I suspect that you weren’t seeing the latest version. Use Ctrl-Shift-R to flush the cache or use an incognito tab.

---

<div class="post-metadata">

**Author:** ![ymurzello](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/ymurzello/32/34379_2.png) [@ymurzello](https://discourse.psychopy.org/u/ymurzello)\
**Post date:** [July 12, 2022, 1:33pm UTC](https://discourse.psychopy.org/t/online-experiment-doesnt-load/29909/13 "2022-07-12T13:33:23Z")

</div>

Hello @wakecarter

I’m not sure what exactly worked, but I deleted the online files as you suggested here ["Unknown Resource" online, but works fine offline? - #10 by wakecarter](https://discourse.psychopy.org/t/unknown-resource-online-but-works-fine-offline/25793/10) and recreated the online project files after adding the videos in the Additional Resources section in the Online tab of the Experiment Settings. I also used Ctrl-Shift-R in the Project Dashboard.

Thanks a lot for your help! I greatly appreciate it 😃

Best wishes
