dtgm01
March 22, 2021, 1:17pm
1
Hello everyone,
I am piloting an experiment and keep getting the 403 forbidden error.
I have followed the forums and their suggestions but the error still remains. I inspected the error and it says:
“The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the page must be declared in the document or in the transfer protocol”.
I checked the output url, and there isn’t one in my pilot study. I’m not sure where I am going wrong with it.
Any ideas?
Has your index.html document got corrupted? I’ve seen issues of weird text appearing at the top of it which needed to be deleted.
dtgm01
March 22, 2021, 1:35pm
3
Just checked it and it looks fine to me:
<!doctype html>
<html>
<head>
<title>centralAttentionJS_v4 [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-2021.1.2.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://cdn.jsdelivr.net/npm/pixi.js-legacy@5.3.3/dist/pixi-legacy.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.16.7/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/14.7.61/Tone.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/howler/2.2.1/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='./centralAttentionJS_v4.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-2021.1.2.js"></script>
<script nomodule type="text/javascript" src="./centralAttentionJS_v4-legacy-browsers.js"></script>
</body>
</html>
It’s pointing to an issue with:
<!-- experiment -->
<script type='module' src='./centralAttentionJS_v4.js'></script>
I have deleted the index and synched the experiment to Pavlovia again, but still the same issue.
dtgm01:
centralAttentionJS_v4.js
Does this file exist in the same folder as index.html?
dtgm01
March 22, 2021, 5:31pm
5
Yes.
I finally got round it by deleting any code I didn’t need. I am now having issues with the textbox2 component, but this isn’t a new problem from what I can see in the forum.