Failed to load resource: the server responded with a status of 404 () #1769
Replies: 2 comments 1 reply
-
We'll need more information to be able to help. Where are you running your experiment? How is the data being saved? What file is the 404 error referencing? |
Beta Was this translation helpful? Give feedback.
-
Hi @python2020-maker, thanks for sharing the link to your task. It looks like you're using an old version of jsPsych, prior to v6.0.5. Versions of jsPsych <6.0.5 aren't supported on cognition.run, even when you upload all of the old files - see this comment from the cognition.run creator on a different discussion thread. As far as the 404 errors - it looks like you're using the single-stim plugin with an HTML stimulus, and jsPsych is trying to preload the HTML. Obviously there are no files named with your HTML strings, so that's why it's failing. I'm not sure why that's happening, but if you're not using any images, you could comment out the Another thing is that you're putting the stimulus into an array, when I think it should just be a string. like this: var practice_block14 = {
type: "single-stim",
stimulus: '<p>music</p>',
choices: [100],
timing_response: 1200,
data: {phase: 'mem'},
is_html: true,
}; I don't think it would be too difficult to make your expeirment compatible with jsPsych v6.0.5+ so that you can run it on cognition.run. For all of your single stim trials that use an HTML stimulus, you can switch to the html-keyboard-response plugin (see plugin docs for changes to parameter names, etc.). Another big change in v6.3.0+ is the switch from key codes to key characters, so instead of |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I can run the experiment but the data is not saved and this error in console: Failed to load resource: the server responded with a status of 404 ()
How can this issue be solved? Is there anybody to help?
Beta Was this translation helpful? Give feedback.
All reactions