Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Failed to load resource: net::ERR_FILE_NOT_FOUND loading json.js

I am testing an html webpage and it is failing to load a local jquery.json-2.4.0.js. I am testing the html page locally from chrome. When the page loaded I get a net::ERR_FILE_NOT_FOUND.

Why is it unable to load the file? This file has been moved from a different server (which it was working fine on), but the directory paths are the same (I double checked the path ).

Here is my line:

<script type='text/javascript' src='/webforms/ExperianEmailJsScripts/jquery/js/jquery.jsonp-2.4.0.js'></script>
like image 655
user2133925 Avatar asked Sep 04 '15 20:09

user2133925


People also ask

What is Net :: Err_file_not_found?

This error means that file was not found. Either path is wrong or file is not present where you want it to be. Try to access it by entering source address in your browser to check if it really is there. Browse the directories on server to ensure the path is correct.

How solve failed to load resource net:: ERR_ file_ not_ found?

The cause: This problem net::err_file_not_found means the file could not be located. Either the path is incorrect or the desired file is not present. Solution: Visit it by typing its source address into your browser to check if it's indeed there. Verify the path is valid by browsing the server's folders.


3 Answers

Remove the first / in the path. Also you don't need type="text/javascript" anymore in HTML5.

like image 197
Zak Avatar answered Oct 19 '22 19:10

Zak


This error means that file was not found. Either path is wrong or file is not present where you want it to be. Try to access it by entering source address in your browser to check if it really is there. Browse the directories on server to ensure the path is correct. You may even copy and paste the relative path to be certain it is alright.

like image 34
ezpn Avatar answered Oct 19 '22 20:10

ezpn


I got the same error using:

<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Source+Sans+Pro:400,400i,700,700i,900,900i" type="text/css" media="all">

But once I added https: in the beginning of the href the error disappeared.

<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,400i,700,700i,900,900i" type="text/css" media="all">
like image 3
Thiago Farias Avatar answered Oct 19 '22 18:10

Thiago Farias