# Pavlovia URL and SONA credits

**URL:** <https://discourse.psychopy.org/t/pavlovia-url-and-sona-credits/22032>\
**Category:** Online experiments\
**Created:** [April 5, 2021, 6:22am UTC](https://discourse.psychopy.org/t/pavlovia-url-and-sona-credits/22032 "2021-04-05T06:22:39Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![fioannidou](https://avatars.discourse-cdn.com/v4/letter/f/54ee81/32.png) [@fioannidou](https://discourse.psychopy.org/u/fioannidou)\
**Post date:** [April 5, 2021, 6:22am UTC](https://discourse.psychopy.org/t/pavlovia-url-and-sona-credits/22032/1 "2021-04-05T06:22:39Z")

</div>

Hello,

I am running an experiment in Pavlovia and I want to sync it with SONA so participants can automatically have their credits after completing the task.  
I followed all the instructions recommended by SONA and the two platforms are synchronized.  
However, participants do not automatically receive their credits.  
One thing that I noticed is that my experiment URL in Pavlovia doesn’t include HTML or index. HTML.  
I made the study inactive and switched it to running several times but still the HTML didn’t appear.  
Can this be the reason that the credits are not automatically granted? If yes can I manually add the HTML at the end of the URL path? And finally is it just HTML or I need to also add index.HTML.

Flora

---

<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:** [April 5, 2021, 6:51am UTC](https://discourse.psychopy.org/t/pavlovia-url-and-sona-credits/22032/2 "2021-04-05T06:51:34Z")

</div>

Pavlovia experiments no longer have html in them by default.

Please could you show a screenshot of your completed URL? Are you getting a particular error message?

---

<div class="post-metadata">

**Author:** ![fioannidou](https://avatars.discourse-cdn.com/v4/letter/f/54ee81/32.png) [@fioannidou](https://discourse.psychopy.org/u/fioannidou)\
**Post date:** [April 5, 2021, 7:08am UTC](https://discourse.psychopy.org/t/pavlovia-url-and-sona-credits/22032/3 "2021-04-05T07:08:45Z")

</div>

![CompURL](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/8/c/8c66761987ca2a1ece86d18438675dc4aedc068e.png)

Thank you so much for the quick response.  
This is completed URL from SONA.  
Participants reported that the automatic creditation failed. They didn’t report any particular error.  
At the moment all participants are in an awaiting action for their credits in SONA.  
When I ran the experiment myself via the sample link with embedded ID code i was never redirected back to SONA (as the instructions suggested).

---

<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:** [April 5, 2021, 7:11am UTC](https://discourse.psychopy.org/t/pavlovia-url-and-sona-credits/22032/4 "2021-04-05T07:11:42Z")

</div>

I mean the completed URL from PsychoPy experiment settings.

---

<div class="post-metadata">

**Author:** ![fioannidou](https://avatars.discourse-cdn.com/v4/letter/f/54ee81/32.png) [@fioannidou](https://discourse.psychopy.org/u/fioannidou)\
**Post date:** [April 5, 2021, 7:16am UTC](https://discourse.psychopy.org/t/pavlovia-url-and-sona-credits/22032/5 "2021-04-05T07:16:00Z")

</div>

![CompPsychoPy](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/e/7/e715c132668c799985c8bc23100d5a35997ff181.png)

This is the completed URL from PsychoPy extperiment

---

<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:** [April 5, 2021, 7:40am UTC](https://discourse.psychopy.org/t/pavlovia-url-and-sona-credits/22032/6 "2021-04-05T07:40:40Z")

</div>

Your return URL looks fine, but I’ve spotted two errors.

1. Your outward URL is missing /html  
[GE [PsychoPy]](https://run.pavlovia.org/fioannidou/ge/) gives an error  
[GE [PsychoPy]](https://run.pavlovia.org/fioannidou/ge/html/) is fine

2. You’ve removed “participant” from the expInfo dialogue box.

---

<div class="post-metadata">

**Author:** ![fioannidou](https://avatars.discourse-cdn.com/v4/letter/f/54ee81/32.png) [@fioannidou](https://discourse.psychopy.org/u/fioannidou)\
**Post date:** [April 5, 2021, 7:47am UTC](https://discourse.psychopy.org/t/pavlovia-url-and-sona-credits/22032/7 "2021-04-05T07:47:56Z")

</div>

So what do you recommend?  
Should I add at the end of Pavlovia’s URL code /html and update it in SONA?

Is the participant dialogue box essential? We wanted to remove this in case participants entered their names.  
Can i replace it with the info box i have replaced participant box?  
To be honest I am confused with the first error. Sorry first time using Pavlovia.

---

<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:** [April 5, 2021, 8:46am UTC](https://discourse.psychopy.org/t/pavlovia-url-and-sona-credits/22032/8 "2021-04-05T08:46:50Z")

</div>

> [@fioannidou](#):
>
> Is the participant dialogue box essential? We wanted to remove this in case participants entered their names.

The participants won’t see it if it has been prefilled by Sona.

---

<div class="post-metadata">

**Author:** ![fioannidou](https://avatars.discourse-cdn.com/v4/letter/f/54ee81/32.png) [@fioannidou](https://discourse.psychopy.org/u/fioannidou)\
**Post date:** [April 5, 2021, 9:10am UTC](https://discourse.psychopy.org/t/pavlovia-url-and-sona-credits/22032/9 "2021-04-05T09:10:59Z")

</div>

o.k I will add the participant box in psychoPy.

Sorry to ask again is it o.k to manually add the HTML path at the end of the experiment’s URL?

Many thanks again for the help and quick response 🙂

---

<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:** [April 5, 2021, 9:14am UTC](https://discourse.psychopy.org/t/pavlovia-url-and-sona-credits/22032/10 "2021-04-05T09:14:17Z")

</div>

You manually added the URL to Sona but either added the wrong one or have edited your experiment since then to export your JS to an html folder.

Yes you can add html to Sona since at the moment I doubt anyone can do your experiment.

---

<div class="post-metadata">

**Author:** ![fioannidou](https://avatars.discourse-cdn.com/v4/letter/f/54ee81/32.png) [@fioannidou](https://discourse.psychopy.org/u/fioannidou)\
**Post date:** [April 5, 2021, 10:24am UTC](https://discourse.psychopy.org/t/pavlovia-url-and-sona-credits/22032/11 "2021-04-05T10:24:36Z")

</div>

thank you for your response.

Both Pavlovia URLs were entered correctly in SONA and I didn’t do them manually.

The last change I made in the experiment and the last upload in Pavlovia was 1 day ago (according to my log). I have a participant who successfully ran the experiment 13 hours ago so the experiment works.

My only issue was with the credits but I will follow your recommendations and hopefully, it will work 🙂

Many thanks for the help.
