Version 24.06 (9b4dd543)
Python 3.9.18 Qt 6.6.2 PyQt 6.6.1
Windows 10, no add-ons.
Any note type that has this script (including the default Image Occlusion note type) will throw an error and will be unable to properly load:
Script:
<script>
try {
anki.imageOcclusion.setup();
} catch (exc) {
document.getElementById("err").innerHTML = `Error loading image occlusion. Is your Anki version up to date?<br><br>${exc}`;
}
</script>
JS error /_anki/js/reviewer.js:441 Uncaught (in promise) Error: 403: <!doctype html>
<html lang=en>
<title>403 Forbidden</title>
<h1>Forbidden</h1>
<p>You don't have the permission to access the requested resource. It is either read-protected or not readable by the server.</p>
Sigh, thanks for the report. It seems to be limited to running the packaged builds. I’ll try to get a .1 release out tonight or tomorrow, and have not updated the website to point to the new version yet.
I tested the packaged build on a Windows machine and it seems to work for me. If you create a fresh profile, create an image occlusion card in it, and review it, does it still give you the error?
I didn’t test it in the Reviewer previously. I just did, and it worked even without creating a new profile.
The problem seems to occur in the Card Template and Card Preview windows, even when using a new profile.