# Help with getting jsPsych experiment onto Pavlovia

**URL:** <https://discourse.psychopy.org/t/help-with-getting-jspsych-experiment-onto-pavlovia/17870>\
**Category:** jsPsych\
**Created:** [November 6, 2020, 1:06pm UTC](https://discourse.psychopy.org/t/help-with-getting-jspsych-experiment-onto-pavlovia/17870 "2020-11-06T13:06:07Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![cslongman](https://avatars.discourse-cdn.com/v4/letter/c/65b543/32.png) [@cslongman](https://discourse.psychopy.org/u/cslongman)\
**Post date:** [November 6, 2020, 1:06pm UTC](https://discourse.psychopy.org/t/help-with-getting-jspsych-experiment-onto-pavlovia/17870/1 "2020-11-06T13:06:07Z")

</div>

Hi,

I have tried to follow the guidance on how to put my jsPsych experiment onto Pavlovia, but so far I have been really struggling with this.

Does anybody have a simpler (or more detailed) guide that will take me through the process than this one…?

> **[Pavlovia](https://pavlovia.org/js-psych)**
>
> The place for the wide community of researchers in the behavioural sciences to run, share, and explore experiments online

I am a confident coder, but I am completely new to doing online research and I am finding it difficult to get things up and running. My code works perfectly when I run it on my local PC, but I am really feeling out of my depth when it comes to the online aspects.

Any extra help would be very much appreciated.

Thanks in advance,

Cai

---

<div class="post-metadata">

**Author:** ![Becca](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/becca/32/34260_2.png) [@Becca](https://discourse.psychopy.org/u/Becca)\
**Post date:** [November 6, 2020, 1:34pm UTC](https://discourse.psychopy.org/t/help-with-getting-jspsych-experiment-onto-pavlovia/17870/2 "2020-11-06T13:34:22Z")

</div>

Hi Cai,

I have to admit that this is an area that I am less experienced with - let me tag some more knowledgeable JS people here who might be more helpful than I! @thomas_pronk @sotiri

Thanks,  
Becca

---

<div class="post-metadata">

**Author:** ![thomas\_pronk](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/thomas_pronk/32/9531_2.png) [@thomas\_pronk](https://discourse.psychopy.org/u/thomas_pronk)\
**Post date:** [November 6, 2020, 3:48pm UTC](https://discourse.psychopy.org/t/help-with-getting-jspsych-experiment-onto-pavlovia/17870/3 "2020-11-06T15:48:22Z")

</div>

Hi Cai,

Could you give me a pointer as to where you’re getting stuck?

Best, Thomas

---

<div class="post-metadata">

**Author:** ![cslongman](https://avatars.discourse-cdn.com/v4/letter/c/65b543/32.png) [@cslongman](https://discourse.psychopy.org/u/cslongman)\
**Post date:** [November 6, 2020, 4:09pm UTC](https://discourse.psychopy.org/t/help-with-getting-jspsych-experiment-onto-pavlovia/17870/4 "2020-11-06T16:09:49Z")

</div>

Hi Thomas,

I have managed to add the extra code to my jsPsych script, set up a new project in Pavlovia, downloaded and installed GitLab version control… I then got stuck when the notes asked me to…

" You then need to clone the newly created, empty project onto your local machine by following the command line instructions given on the project page under the header **“Create a new repository”**."

I could not find the header Create New Repository.

Also, when installing GitLab version control software, I had to guess which would be the most useful/appropriate options.

As I said, all of this is a bit alien to me and althoug hthe guidance seems fairly simple to follow, the reality is quite different. I guess this is probably because my knowledge of how all of this works is very limited indeed. Thiis is why I was asking if any other users had produced an easier to follow (or more detailed) guide on getting from jsPsych script to online experiment hosted on Pavlovia. I suspect that once I have resolved one issue, the next will be not far behind it.

Any extra help on this woudl be very much appreciated.

many thanks,

Cai

---

<div class="post-metadata">

**Author:** ![thomas\_pronk](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/thomas_pronk/32/9531_2.png) [@thomas\_pronk](https://discourse.psychopy.org/u/thomas_pronk)\
**Post date:** [November 6, 2020, 4:17pm UTC](https://discourse.psychopy.org/t/help-with-getting-jspsych-experiment-onto-pavlovia/17870/5 "2020-11-06T16:17:10Z")

</div>

Thanks for the pointers! As far as I know there are no other guides for this, but we could improve this one; that’s why I’m very happy with your FB. For efficiency I’m bundling up some jsPsych topics to address in one go (then I don’t have to task switch that often; less overhead). Update soon!

---

<div class="post-metadata">

**Author:** ![cslongman](https://avatars.discourse-cdn.com/v4/letter/c/65b543/32.png) [@cslongman](https://discourse.psychopy.org/u/cslongman)\
**Post date:** [November 6, 2020, 4:20pm UTC](https://discourse.psychopy.org/t/help-with-getting-jspsych-experiment-onto-pavlovia/17870/6 "2020-11-06T16:20:19Z")

</div>

Thank you Thomas - I really appreciate it.

Love PsychoPy and jsPsych (as well as Pavlovia), and I really want to make it work.

Have a good weekend,

Cai

---

<div class="post-metadata">

**Author:** ![thomas\_pronk](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/thomas_pronk/32/9531_2.png) [@thomas\_pronk](https://discourse.psychopy.org/u/thomas_pronk)\
**Post date:** [November 9, 2020, 2:54pm UTC](https://discourse.psychopy.org/t/help-with-getting-jspsych-experiment-onto-pavlovia/17870/7 "2020-11-09T14:54:30Z")

</div>

On it. Some more questions so I don’t start making weird assumptions:

**Header "Create new repository"**  
This refers to Figure 3. I’ll do the following:

- Be more explicit that it’s a figure, not a header
- Put the actual text that’s in that figure in the web-page, so you can copy-paste it

**Gitlab version control software**  
Could you give me a link to that software?

---

<div class="post-metadata">

**Author:** ![cslongman](https://avatars.discourse-cdn.com/v4/letter/c/65b543/32.png) [@cslongman](https://discourse.psychopy.org/u/cslongman)\
**Post date:** [November 9, 2020, 3:07pm UTC](https://discourse.psychopy.org/t/help-with-getting-jspsych-experiment-onto-pavlovia/17870/8 "2020-11-09T15:07:39Z")

</div>

This is the link off the Pavlovia-jsPsych page to the GitLab version control software…

> **[Git](https://git-scm.com/)**

---

<div class="post-metadata">

**Author:** ![cslongman](https://avatars.discourse-cdn.com/v4/letter/c/65b543/32.png) [@cslongman](https://discourse.psychopy.org/u/cslongman)\
**Post date:** [November 9, 2020, 3:16pm UTC](https://discourse.psychopy.org/t/help-with-getting-jspsych-experiment-onto-pavlovia/17870/9 "2020-11-09T15:16:40Z")

</div>

I’m not sure I follow your other comment.

I have a feeling either we are looking at different instructions (I have no Figure 3 on the one I’m looking at), or I have just completely missed something. This whole section is difficult to follow to be honest.

The instructions say…

" You then need to clone the newly created, empty project onto your local machine by following the command line instructions given on the project page under the header **“Create a new repository”**."

But I can’t find ‘Create a new repository’ anywhere and I’m not sure what I am being asked to do here. That it is telling me to follow the command line instructions suggests that I am supposed to enter some command line instructions somewhere, but I don’t know where (or even which piece of software I am supposed to be doing this in).

Cai

---

<div class="post-metadata">

**Author:** ![thomas\_pronk](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/thomas_pronk/32/9531_2.png) [@thomas\_pronk](https://discourse.psychopy.org/u/thomas_pronk)\
**Post date:** [November 9, 2020, 3:40pm UTC](https://discourse.psychopy.org/t/help-with-getting-jspsych-experiment-onto-pavlovia/17870/10 "2020-11-09T15:40:42Z")

</div>

This is the page I’m looking at. Same for you? [https://pavlovia.org/docs/experiments/create-jsPsych](https://pavlovia.org/docs/experiments/create-jsPsych)

---

<div class="post-metadata">

**Author:** ![cslongman](https://avatars.discourse-cdn.com/v4/letter/c/65b543/32.png) [@cslongman](https://discourse.psychopy.org/u/cslongman)\
**Post date:** [November 9, 2020, 4:01pm UTC](https://discourse.psychopy.org/t/help-with-getting-jspsych-experiment-onto-pavlovia/17870/11 "2020-11-09T16:01:22Z")

</div>

OK, that is actually already a little more helpful than the one I was looking at.

However, my screen does not look like Figure 3 when I get to that point. Leave it with me and I’ll try it again and come back to you if I get stuck again…

---

<div class="post-metadata">

**Author:** ![thomas\_pronk](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/thomas_pronk/32/9531_2.png) [@thomas\_pronk](https://discourse.psychopy.org/u/thomas_pronk)\
**Post date:** [November 9, 2020, 4:02pm UTC](https://discourse.psychopy.org/t/help-with-getting-jspsych-experiment-onto-pavlovia/17870/12 "2020-11-09T16:02:50Z")

</div>

Good luck! If it doesn’t work out; I just managed to get a jsPsych experiment cloned via a different approach (using the GitHub GUI client), but that’s a bit less elegant and requires different steps. Could you tell me what page you were looking at for instructions?

---

<div class="post-metadata">

**Author:** ![cslongman](https://avatars.discourse-cdn.com/v4/letter/c/65b543/32.png) [@cslongman](https://discourse.psychopy.org/u/cslongman)\
**Post date:** [November 9, 2020, 4:04pm UTC](https://discourse.psychopy.org/t/help-with-getting-jspsych-experiment-onto-pavlovia/17870/13 "2020-11-09T16:04:14Z")

</div>

The link is in my original post…

---

<div class="post-metadata">

**Author:** ![thomas\_pronk](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/thomas_pronk/32/9531_2.png) [@thomas\_pronk](https://discourse.psychopy.org/u/thomas_pronk)\
**Post date:** [November 9, 2020, 4:08pm UTC](https://discourse.psychopy.org/t/help-with-getting-jspsych-experiment-onto-pavlovia/17870/14 "2020-11-09T16:08:06Z")

</div>

Sorry; I hadn’t clicked it, because I assumed that it was the same page I was looking at. Assumptions assumptions :). I’ll make sure this page gets replaced by a redirect to the correct documentation. Thanks for the info!

---

<div class="post-metadata">

**Author:** ![cslongman](https://avatars.discourse-cdn.com/v4/letter/c/65b543/32.png) [@cslongman](https://discourse.psychopy.org/u/cslongman)\
**Post date:** [November 9, 2020, 4:35pm UTC](https://discourse.psychopy.org/t/help-with-getting-jspsych-experiment-onto-pavlovia/17870/15 "2020-11-09T16:35:37Z")

</div>

I just tried to enter the relevan text into the command line and this is as far as I got…

 ![image](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/6/a/6a8439ca574bb384c27344e7e82c1678eb7965bc.png)

As you can see, I first got given an ECDSA key (I don’t know what this is, or what it does).  
I then said that I woudl like to continue.  
Then I tried endtering the key.  
Then I just tried to respond ‘yes’.

The upshot was that I got kicked out and told that it coudl not read from the repository.

It feels like I missed out a stage here.

I don’t know if this is relevant, but on the project page, I am being told that I need to ‘add an SSH key to my profile’. Unfortunately, I don’t know what this means or how to do it.

I am struggling a bit to understand the terminology as well as the underlying theory of what is actually happening here. I think that if I understood what I was supposed to be doing and what a successful attempt would look like then I would be in a better position to follow the guidance.

---

<div class="post-metadata">

**Author:** ![cslongman](https://avatars.discourse-cdn.com/v4/letter/c/65b543/32.png) [@cslongman](https://discourse.psychopy.org/u/cslongman)\
**Post date:** [November 10, 2020, 1:32pm UTC](https://discourse.psychopy.org/t/help-with-getting-jspsych-experiment-onto-pavlovia/17870/16 "2020-11-10T13:32:47Z")

</div>

OK, I have been making quite a bit of progress with this now (thanks for the new guide - it is much better). However, I am still getting an 403 Error message when I try to pilot the study.

Here is a link to the pilot…

[https://run.pavlovia.org/cslongman/taskschemas\_expertise/?\_\_pilotToken=c51ce410c124a10e0db5e4b97fc2af39&\_\_oauthToken=4848468cf694a70ca276931c4a36f4d0762f7943c88d2b53712d2cbd2d71920d](https://run.pavlovia.org/cslongman/taskschemas_expertise/? __pilotToken=c51ce410c124a10e0db5e4b97fc2af39&__ oauthToken=4848468cf694a70ca276931c4a36f4d0762f7943c88d2b53712d2cbd2d71920d)

Here is a link to the study page…

> **[Pavlovia](https://pavlovia.org/cslongman/taskschemas_expertise)**
>
> The place for the wide community of researchers in the behavioural sciences to run, share, and explore experiments online

And here is a link to the gitlab page…

> **[Sign in](https://gitlab.pavlovia.org/users/sign_in)**
>
> Sign In/Register

As you will see, I have managed to upload my experiment to GitLab, also upload all of the relevant folders to the same. I am guessing that the error is due to my coding. Although I have followed the guidance, I am wondering if maybe I need to make some changes to the header to link to the correct files/folders.

Any advice would be much appreciated.

Cai

---

<div class="post-metadata">

**Author:** ![cslongman](https://avatars.discourse-cdn.com/v4/letter/c/65b543/32.png) [@cslongman](https://discourse.psychopy.org/u/cslongman)\
**Post date:** [November 10, 2020, 4:30pm UTC](https://discourse.psychopy.org/t/help-with-getting-jspsych-experiment-onto-pavlovia/17870/17 "2020-11-10T16:30:11Z")

</div>

UPDATE…

I have now tried a few things out (changed the project to inactive and back to piloting, changed the name of the main html file to ‘index.html’, started from scratch and uploaded the whole thing as a new project, changed the details in the header to match the formatting in the example), but I still get the 403 Forbidden nginx error message.

Any help would be much appreciated here. I am stuck and drawing a blank.

Link to new project page on gitlab:

> **[Sign in](https://gitlab.pavlovia.org/users/sign_in)**
>
> Sign In/Register

Link to new project on Pavlovia:

> **[Pavlovia](https://pavlovia.org/cslongman/taskschemas_expertise_2.0)**
>
> The place for the wide community of researchers in the behavioural sciences to run, share, and explore experiments online

---

<div class="post-metadata">

**Author:** ![thomas\_pronk](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/thomas_pronk/32/9531_2.png) [@thomas\_pronk](https://discourse.psychopy.org/u/thomas_pronk)\
**Post date:** [November 11, 2020, 2:50am UTC](https://discourse.psychopy.org/t/help-with-getting-jspsych-experiment-onto-pavlovia/17870/18 "2020-11-11T02:50:28Z")

</div>

I can’t access you experiment I’m afraid, could you make me a member in gitlab? (tpronk). Meanwhile a guess: is you experiment set to piloting/running?

---

<div class="post-metadata">

**Author:** ![cslongman](https://avatars.discourse-cdn.com/v4/letter/c/65b543/32.png) [@cslongman](https://discourse.psychopy.org/u/cslongman)\
**Post date:** [November 11, 2020, 9:30am UTC](https://discourse.psychopy.org/t/help-with-getting-jspsych-experiment-onto-pavlovia/17870/19 "2020-11-11T09:30:21Z")

</div>

Hi Thomas,

I can’t see how make you a member in GitLab (sorry).

Also, the project is currently piloting on Pavlovia.

---

<div class="post-metadata">

**Author:** ![cslongman](https://avatars.discourse-cdn.com/v4/letter/c/65b543/32.png) [@cslongman](https://discourse.psychopy.org/u/cslongman)\
**Post date:** [November 12, 2020, 2:05pm UTC](https://discourse.psychopy.org/t/help-with-getting-jspsych-experiment-onto-pavlovia/17870/20 "2020-11-12T14:05:37Z")

</div>

Hi Thomas,

I am still struggling with this. I have now added the updated plugins (pavlovia and jquery) to the plugins folder, and updated the links in the code to these folders, but I still getting a 403 error message when I try to run the experiment off Pavlovia.

I am happy to add you to the relevant project, but I don’t know how to do that. If you can tell me how, then I can do so right away so that you can take a look at what I have done so far.

I have tried everything I can think of, but am still coming up short. Any help would be much appreciated.

Cai

[Next page](https://discourse.psychopy.org/t/help-with-getting-jspsych-experiment-onto-pavlovia/17870.md?page=2)
