In our solution, we reference the JSAPI offline file. However, it returns me "net::ERR_ABORTED 404" error when the page loads.
The error message is;
https://www.google.com/uds/?file=visualization&v=1&packages=corechart
net::ERR_ABORTED 404
Full console log:
This is how I referenced the js file.
However, This works when I use the online js (https://www.google.com/jsapi) instead of using an offline js file.
Note that I'm using jquery 1.11 version (also an offline file).
Any idea why it's not working when I use the offline js?
Related
I'm checking under network tab on a site. In my local host it works correctly. But I doubt the site's hosting provider has some setting that is not fulfilled by my script file.
I get 403 - permission denied error for all my js files in this server.
Additionally when I opened the network tab, I found the following:
Domain = the sites domain
Cause = script
Type = html
The site also has other plugins where the js file's Type = js and it rendered correctly(status = 200).
I suspected the server might be using old html, so I specified type="text/javascript" for it to be recognized as js file. yet it doesn't help.
This is a joomla site and my plugin is a system plugin. Does this has anything to do with my script?
Exact error I'm getting:
<html><head>
<title>403 Forbidden</title>
</head><body>
<h1>Forbidden</h1>
<p>You don't have permission to access /plugins/system/conversekit/assets/js/conversekit.js
on this server.<br />
</p>
<p>Additionally, a 404 Not Found
error was encountered while trying to use an ErrorDocument to handle the request.</p>
</body></html>
I have a local IIS site where i developed some code with PDF.js. There it worked fine to load a specific PDF and read the text contents from it.
Then I copied everything to the a library in a SharePoint Server (thats the only difference, IIS vs SharePoint) and changed all references. The code does not throw any Errors, with debugging level info it just prints
Info: Cannot use postMessage Transfers
to the console. Adding a console.log line into the PDF.js catch block of the promise did not result in any new information. It doesn't even get to the first logging inside the then:
var pdfobj = PDFJS.getDocument(docPath);
pdfobj.then(function (pdf) {
console.log(pdf);
any ideas?
EDITS: Updated from PDF.JS 1.1 to 1.2
There are not many error logs in PDF.js. I accidently hardcoded a wrong URL where even the server is non existent... and no error log, not even the then(...).catch(...) is called?
It is working now in Firefox but not in IE and I cannot see any reason for this. The Info message about Cannot use postMessage Transfers is also only displayed in IE (using IE 11).
It does work now. I am not sure what I did to fix it, but I will update this answer when I know. I think it has something to do with the directory structure of the PDF.js files. Previously I just uploaded all JS files (there were no errors though).
Still there is no exception handling when the PDF does not exist.
I am trying to use the jQuery.load() function, and it works on Firefox, but not on Safari and Chrome. The odd part is that it works on mobile Safari.
All of the posts I found on this subject appeared old and outdated.
Does anyone have a solution to fix this problem?
Here is sample code from my page:
<div class="navButton"></div>
<script>
$(".navButton").load("bottomNav.html");
</script>
The error console tells the story here.
Failed to load resource: the server responded with a status of 404 (Not Found)
http://yellowtailderby.com/jquery-2.1.0.js
Uncaught ReferenceError: $ is not defined
So, when you try to execute:
$(".navButton").load("bottomNav.html");
The $ symbol is not defined because jQuery is not successfully loaded.
The issue seems to be that this:
http://yellowtailderby.com/jquery-2.1.0.js
does not exist (gets a 404 error) so this script tag:
<script src="jquery-2.1.0.js"></script>
is not working properly. The fix is to either correct the script tag or make sure that particular file is properly located on your server at that path.
I am getting the exact same error in Firefox, so I suspect that maybe you have that file in your browser cache in Firefox (so it's getting loaded via cache), but it doesn't actually exist on the server. The Firefox reports:
"NetworkError: 404 Not Found - http://yellowtailderby.com/jquery-2.1.0.js"
I had created a table in SAPUI5 using ODATA services. And it worked perfectly fine until today. Today the HTML file loads a blank page and when i check the developer tools, I see the following error:
Failed to load resource http://hana_server_name:4000/ui_test/ui5_test/WebContent/ui5_test/VisitorData.view.js
Uncaught Error: failed to load 'ui5_test/VisitorData.view.js' from ./ui5_test/VisitorData.view.js: 0 - NetworkError: A network error occurred.
The ODATA service is working fine, and I'm using the same ODATA file to create a chart, and the chart renders as normal.
I'm getting the same error message for 2 tables that I've created.
It looks like this is caused by some changes to the server but I'm not sure what changed or if its a problem with my code. If its a server error, what should i be looking for.
Thank you,
Salman
The error message is pretty obvious, isn't it? Your view VisitorData.view.js was simply not found and therefore can not load. Did you check if it is physically available on the server? Missing file permissions could be another reason.
You can also check
http://hanaservername.com:4000/ui_test/ui5_test/WebContent/resources/ to see a listing of the deployed sources (if your application/server is configured to allow that). On Java Application Servers (local Tomcat, Java Stack, no clue what HANA uses...) you need to set the following in your web.xml:
<context-param>
<param-name>com.sap.ui5.resource.DEV_MODE</param-name>
<param-value>true</param-value>
</context-param>
i consider you are binding data which you get from server to your table or chart.
Even if server didn't give you the data your code should work properly without giving any error, so i suppose problem should be in your code.
Just run your code with debug mode ON on your browser and click on error thrown by browser and it will lead you to the line which is causing the error
I am developing a web app in which I am trying to use the HTML5 application cache.
I am running the application on apache tomcat 7. When the server is running it's OK; file downloads in Google Chrome and I get cached or update ready event. But once I shut down the server and refresh the page, I get an error manifest fetch fail (-1).
How to get over this error and why does it occur?
my manifest file is as follows(sample.manifest):
CACHE MANIFEST
# version 4
CACHE:
css/styles.css
js/script.js
js/jquery-latest.js
js/jquery.validate.js
img/blue-line.png
img/main-img.png
img/logo.png
img/green-li.png
img/gline2.png
img/gline3.png
img/gline4.png
img/gline5.png
img/diversity-img.jpg
img/facebook32.png
img/mail40x32.png
img/main-img-298.png
img/ppl-img.jpg
img/twitter32.png
leavevbc.html
diversity.html
NETWORK:
*
I added the correct MIME type but I'm still getting the problem.
The manifest load fail error is exactly what you have to expect if the server can't be reached. The manifest can't be loaded. It's a little bit confusing that this is reported as an error - but that's what the standard says. All you have to do is ignore the error and you should have an offline cached webapp.
In Chrome, inspect all your app cached items. You may be surprised to see that what is inside of your cached files are not what you put into them. I've run into this exact situation. I had a javascript file that contained my FALLBACK: offline.html page. The Webkit cache loader has issues when the type of content its loading is not what it expects. To me this is just wrong, but on the upside, it did reveal the problem. In my case, it looked in my js file and crimped when it saw the at the top of the file.
If there are resources that must be pulled when online only then list them in NETWORK: section.
To fix current situation do following:
clear out your browser cache
change comment at top of your manifest file so that new copy will be downloaded
fire up chrome with developer tools
pull down web page while online
inspect your chrome application cache files again
go offline and browser refresh
http://www.html5rocks.com/en/tutorials/appcache/beginner/