psychopy.org | Reference | Downloads | Github

Help: 404 error

URL of experiment: https://gitlab.pavlovia.org/APL_Lincoln/arousal-and-decision-making
Description of the problem: I’m trying to pilot my study. All the necessary files seem to be in the repository. I’ve set it to ‘piloting’ but when I click ‘pilot’ a new tab opens with a 404 error.
I’m a bit perplexed as to what is wrong, or what I have or haven’t done.
can you help

thank
Aidan

Your URL should be https://pavlovia.org/APL_Lincoln/arousal-and-decision-making

Click the pilot link from there.

thanks,
I’ve just used the link and clicked pilot from there, but same error message

Hi

That suggests that the experiment hasn’t synced properly. If you go to code View Code and then the html folder, can you see a js file?

Have you renamed any files? You could try switching it to inactive and then back to piloting to reboot it.

Hi,
there are 2 js files in the html folder. one is the name of the experiment file and the other of the experiment file name with legacy browsers. I’ve gone inactive back to pilot no difference. No file name changes.

The psyexp file does have a different name to the project. Do I need to change the name of the .psyexp file?

I’ve also resynced a few times to no avail. Psycopy tells me the sync has been sucessful

Is there index.html ?

That should have the names of the js files in it. — actually the index.html file is the one that’s most likely to be missing, since that would cause a 404 error.

If you need one, here is what one of my index.html files look like. Replace abm with your filename.

<!doctype html>
<html>

<head>
    <title>abm [PsychoPy]</title>
    <meta charset="UTF-8">
    <meta name="viewport" content="user-scalable=no">

    <!-- styles -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.css">
    <link rel="stylesheet" href="https://lib.pavlovia.org/psychojs-2020.1.css">
</head>

<body>
    <div id="root"></div>

     <!-- external libraries -->
    <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script>
    <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"></script>
    <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/seedrandom/3.0.1/seedrandom.min.js"></script>
    <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/pixi.js/4.8.7/pixi.min.js"></script>
    <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/PreloadJS/1.0.1/preloadjs.min.js"></script>
    <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.24.0/moment.min.js"></script>
    <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/xlsx/0.14.2/xlsx.full.min.js"></script>
    <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/log4javascript/1.4.9/log4javascript.min.js"></script>
    <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/tone/13.8.6/Tone.min.js"></script>
    <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/howler/2.1.2/howler.min.js"></script>
    <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/pako/1.0.10/pako.min.js"></script>

    <!-- experiment -->
    <script type='module' src='./abm.js'></script>

    <!-- legacy browsers -->
    <script nomodule type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/babel-polyfill/7.6.0/polyfill.min.js"></script>
    <script nomodule type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/url-search-params/1.1.0/url-search-params.js"></script>
    <script nomodule type="text/javascript" src="https://lib.pavlovia.org/psychojs-2020.1.js"></script>
    <script nomodule type="text/javascript" src="./abm-legacy-browsers.js"></script>
</body>

</html>

the index.html is there. I’ll compare the one in the folder to yours, or ammend yours as you suggest

thanks

no, still 404 error showing.

the html file seems the same (bar name difference), Replaced with yours (changed names) but still the same. I renamed the psyexp file and replaced the old one. I re-synced again and got a success message on psychopy but I’m still getting the 404 message.

I’ll have to leave it until the morning now. Thanks for the suggestions and the help

If you change your experiment you public then I can take another look (if that doesn’t fix it)

is internal okay, or does it have to be public? If public, will it matter if I remove some stimuli/video files first?

thanks

You could just share it with me so I can look rather than making it public. However, I’d discovered that guest level access doesn’t really help with debugging.

okay, I’ll take out the video files then make it public

Hi,
I swapped the videos from the study with shorter videos and I think it is working. I’m assuming that the problem is the file size of the video files then