Skip to main content
teresah9791625
Known Participant
February 16, 2017
Question

What is causing Failed to load resource: net::ERR_FILE_NOT_FOUND in Chrome

  • February 16, 2017
  • 3 replies
  • 22539 views

I have an html 5 scalable course made with captivate 9. It runs fine unless I run it from my hard drive in Google Chrome then it gets stuck loading and when I check the developers console there is a lot of errors: Failed to load resource: net::ERR_FILE_NOT_FOUND. I can run it locally with IE or Firefox and have no problems. Also if I run it from network with Google Chrome I have no issues, only when run locally. I need a local version so I need to find a solution. Thanks in advance for any help.

This topic has been closed for replies.

3 replies

hh.acosta
Participant
October 5, 2019

I have found a solution for this problem. I Know that this post is from 2017, but this issue it's been giving us a lot of headache for a while. Here's the solution:

 

On the index.html file, add a set setTimeout Function to the cpXHRJSLoader of the CPM.js file. It gives the tieme so the browser can load all the info correctly:

 

setTimeout(function(){

cpXHRJSLoader.js(lJSFiles,function()
{
//console.log("js loaded");

// MORE CODE

});
}, 500);
damonpace
Participant
January 9, 2020

Thank you for this. The setTimeout solution worked for me. 

 

My problem was a webrtc blob not playing everytime. It worked only sometimes. The timeout seemed to solve the problem. 

 

There may be a better way to do this with a promise, but the timeout seems to be fine.

teresah9791625
Known Participant
August 4, 2017

No I never found a solution. Thank goodness my customer requirement was only IE and Firefox, but I know this will eventually change. My customer requires a local solution but wants HTML5 so I have run into "local" issues. I hope someone can shed some light on this. I started trying to track it in the developers panel when running through Chrome, it seemed to me like it might have have been an issue with how the browser loads the page and somethings were not available yet, because if I hit refresh it usually loads fine.

Erik Lord
Inspiring
August 4, 2017

You will almost surely run into issues with a 'run HTML content locally' requirement. There are a variety of things, largely JS-related, that browsers lock-down for whatever security reason. This likely isn't a CP issue but a browser security issue.

Best to try to educate your customer that 'running locally as HTML' is not a good solution.

Alternatives may be:

1. Publish your piece as an .exe

2. Suggest the customer install an internal webserver for his users, if the scenario fits

teresah9791625
Known Participant
October 13, 2017

Has anyone figured out why this happens. It only happens in Chrome and Edge. I really need to be able to run html5 locally. I even tried using ELECTRON to make a shell it works great to play HTML5 on desktop, EXCEPT when that HTML5 is from CAPTIVATE. I really need to figure out something. The exact error is failure to load resource: net:: ERR_FILE_NOT_FOUND then goes through all the .png files that captivate creates.

Known Participant
August 4, 2017

Have you found an answer to this problem? I am also having this issue. It seems to be something related to Chrome and something locally installed on my machine. However, I'm not sure how to get past it.