# "Unknown resource" when I try piloting my experiment

**URL:** <https://discourse.psychopy.org/t/unknown-resource-when-i-try-piloting-my-experiment/21112>\
**Category:** Online experiments\
**Created:** [March 9, 2021, 11:04am UTC](https://discourse.psychopy.org/t/unknown-resource-when-i-try-piloting-my-experiment/21112 "2021-03-09T11:04:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![wavves](https://avatars.discourse-cdn.com/v4/letter/w/8c91f0/32.png) [@wavves](https://discourse.psychopy.org/u/wavves)\
**Post date:** [March 9, 2021, 11:04am UTC](https://discourse.psychopy.org/t/unknown-resource-when-i-try-piloting-my-experiment/21112/1 "2021-03-09T11:04:34Z")

</div>

URL of experiment: [https://pavlovia.org/run/eunjungcha/rsvp\_face](https://pavlovia.org/run/eunjungcha/rsvp_face)

Description of the problem:  
When I try piloting the experiment, it says all resources etc are downloaded but as the experiment starts, a window saying “unknown resource” appears.

I have checked my resources file and everything seems to have been uploaded correctly. Am I missing something? Do I need to do something additional in order to run the experiment online?

---

<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:03pm UTC](https://discourse.psychopy.org/t/unknown-resource-when-i-try-piloting-my-experiment/21112/2 "2021-03-09T12:03:04Z")

</div>

If you have a resource defined in code, you need to add it in the online tab of experiment settings.

---

<div class="post-metadata">

**Author:** ![wavves](https://avatars.discourse-cdn.com/v4/letter/w/8c91f0/32.png) [@wavves](https://discourse.psychopy.org/u/wavves)\
**Post date:** [March 9, 2021, 12:25pm UTC](https://discourse.psychopy.org/t/unknown-resource-when-i-try-piloting-my-experiment/21112/3 "2021-03-09T12:25:07Z")

</div>

Hi, thank you so much for a prompt reply. All my resource files are images. I 'm also not sure I completely understand what you mean by “online tab of experiment settings”. Could you please elaborate? 🙂

---

<div class="post-metadata">

**Author:** ![Lu\_Leng](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/lu_leng/32/10508_2.png) [@Lu\_Leng](https://discourse.psychopy.org/u/Lu_Leng)\
**Post date:** [March 9, 2021, 8:59pm UTC](https://discourse.psychopy.org/t/unknown-resource-when-i-try-piloting-my-experiment/21112/4 "2021-03-09T20:59:02Z")

</div>

Apparently, we can find solutions to most of our errors in this document.

> **[PsychoPy Python to Javascript crib sheet](https://docs.google.com/document/d/13jp0QAqQeFlYSjeZS0fDInvgaDzBXjGQNe4VNKbbNHQ/edit)**
>
> PsychoPy version 2020.1.3-2020.2.10Python to JavaScript Crib Sheet Compiled by Wakefield Morys-Carter, Oxford Brookes UniversityPlease share widely and follow Psych\_Stats on twitter. PsychoPy 2020 has an automatic Python to Javascript translation...

I had similar problems as you do. I followed the instructions: **Use experiment settings \> online \> +/- keys to add the list of resources your experiment will need (2020.2.6 onwards).**

You can find the experiment settings on the top panel of the builder. Once you added your images, synchronize your experiment again. Then it should work.  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/d/c/dc4a4496c9dd1757a1a3f865f57880f23cc02072.png)

However, the pictures never get fully synchronized for my study. So I had to manually add the resources that I need to the JavaScript codes. The resources should be added to this section of your JavaScript.

\*\*psychoJS.start({  
expName: expName,  
expInfo: expInfo,  
resources: [

]  
});

Hope this helps!!
