URL of experiment: Pavlovia
Description of the problem: I have been working in a fork of Thomas Pronk / demo_embed_html · GitLab, to get a dynamic blurring paradigm working in an iFrame displayed on top of the Pavlovia window. This has worked decently well so far, but I have encountered a handful of different issues syncing this (and a different project) to Pavlovia. I was hoping my problems would be fixed after updating to 2021.1.2, but here is one I am still having:
I tried to add in parent.addData(“variableName”, someValue);
to the HTML code I am using, to send data values back to my experiment from the iFrame. I have gotten this to work in another experiment before, but I was not getting so much as the variable name appearing in my output file here, so I started debugging by moving this line to different places in my HTML code.
My next test was to see what would happen if I moved all of the custom code in builder view to just one instance in my main routine, and eliminated the first routine that just existed to say “click anywhere to continue.” This is where I noticed an issue with my experiment on Pavlovia. Even though my experiment said it synced successfully, the experiment would run with the first routine still in place.
I tried deleting and remaking the HTML and JS files. I tried moving them from the HTML folder that is no longer PsychoPy’s default output path (and removing HTML from the output path in my experiment settings). When I tried that and synced, and then clicked from “inactive” to “piloting”, I got this:
Error when updating the experiment: karipayne/blurtest
>>> unable to clone project from GitLab repository: [Errno 2] No such file or directory
If the error persists, contact Pavlovia's administrator.
Full description:
{
"origin": "http://pavlovia.org/api/v2/experiments/karipayne/blurtest",
"context": "when updating the attribute(s) of an experiment",
"pathWithNamespace": "karipayne/blurtest",
"user": {
"id": 9793,
"name": "Kari Payne",
"username": "karipayne",
"state": "active",
"avatar_url": "https://secure.gravatar.com/avatar/2d2dd08fec579d25d9c68cf923ec32ba?s=80&d=identicon",
"web_url": "https://gitlab.pavlovia.org/karipayne",
"created_at": "2020-08-21T01:13:25.513Z",
"bio": null,
"location": null,
"public_email": "",
"skype": "",
"linkedin": "",
"twitter": "",
"website_url": "",
"organization": null,
"last_sign_in_at": "2021-02-25T05:13:11.753Z",
"confirmed_at": "2020-08-21T01:13:25.422Z",
"last_activity_on": "2021-03-02",
"email": "karipayne@ksu.edu",
"theme_id": 1,
"color_scheme_id": 1,
"projects_limit": 100000,
"current_sign_in_at": "2021-02-25T06:03:18.166Z",
"identities": [],
"can_create_group": true,
"can_create_project": true,
"two_factor_enabled": false,
"external": false,
"private_profile": null,
"shared_runners_minutes_limit": null,
"emails": [
"karipayne@ksu.edu"
]
},
"experiment": {
"gitlabId": 104967,
"avatarUrl": "",
"creationDate": "2021-02-09 21:47:57.743",
"creatorId": 9793,
"description": "",
"gitlabUrl": "https://gitlab.pavlovia.org/karipayne/blurtest.git",
"name": "Blurtest",
"nbForks": 0,
"nbStars": 0,
"pathWithNamespace": "karipayne/blurtest",
"pavloviaScore": 0,
"pavloviaUrl": "https://pavlovia.org/run/karipayne/blurtest/html/",
"platform": "PSYCHOJS",
"recruitment": {
"policy": {
"type": "DISABLED"
}
},
"runMode": "CREDIT",
"saveFormat": "CSV",
"saveIncompleteResults": true,
"status": "INACTIVE",
"status2": "PILOTING",
"updateDate": "2021-03-02 03:35:54",
"userIds": [
9793
],
"version": "2021.1.2",
"visibility": "private",
"htmlPath": "/html/",
"lastActivationDate": "2021-03-02 01:44:02",
"nbSessions": 0
},
"error": "unable to clone project from GitLab repository: [Errno 2] No such file or directory",
"errorCode": null,
"httpStatusCode": 500
}
So, I deleted the HTML and JS files again, and re-exported them from builder view back into the html path (after adding HTML back to the output path in settings). When I fired up the experiment again, the first “click anywhere to begin” routine still appeared, even though it has been absent from my builder view for at least the past 8 syncs. This leads me to believe my attempts to add parent.addData(“variableName”, someValue);
to my HTML code for the iFrame were not syncing either—that would explain why I would not even get the variable name to appear in my output file.
One more thing that may be related: This past week I have encountered cases where my custom HTML code for the iFrame did not seem to update on Pavlovia after syncing (for this and another project. It would update in the gitlab code, but I would not see my changes when running my experiment). I tried to address this for a different project by remaking it entirely in a new project file, but on Pavlovia I would then get a 403 error when trying to pilot it. This seemed similar enough to other issues I saw posted here, so I waited for 2021.1.2, and this is my first time using PsychoPy after the update.
Please let me know if there is anything obvious that I am doing incorrectly! Thank you for any insight you can offer!
Kari Payne