net::ERR CONTENT LENGTH MISMATCH in Chrome with Jboss WildFly 8.2 - javascript

I have JBoss wildFly 8.2 Up & Running on a windows machine with my war file deployed.
but my web page not able to load JS file and it shows error message in the web console as follows:-
"Failed to load resource: net:: ERR_CONTENT_LENGTH_MISMATCH"
I dig into the issue and found that server not able to load actual file size.
my js file is about to 90kb but server load 18kb and failed to load js file.
how to resolve this issue.
is this a Jboss configuration issue or Chrome issue.
please help me out.

I don't think it is related to jboss. I had the same issue of "net:: ERR_CONTENT_LENGTH_MISMATCH" when I was receiving a huge response in an ajax callback. It was working absolutely fine on Firefox and IE but the console error was there on chrome. Because of this the response was not loading on the UI. After further research I got to know, that Chrome was throwing this error for a special character i.e. "Æ" which was part of my json response body content. However, IE and Firefox were not having any complaint about this.
I corrected the DB value and removed the above special character from the server end. Everything started working fine on chrome as well.
My suggestion to check the body response you are sending from server end. It could be server side fix.
Regards,
Manoj

Related

JS and CSS fail to load in Chrome, intermittently (25%). Getting an ERR_CONNECTION_RESET error

I am running a Flask web app on localhost, for development. I do a Ctrl+F5 (after I have made a change to JS or CSS). Once in 3-4 such instances I get ERR_CONNECTION_RESET errors in the Chrome console, for SOME of the external JS/CSS (Bootstrap, Jquery etc) that I am fetching from CDNs. But there's no pattern to it. I am getting this from MaxCDN, cdnjs.cloudflare.com, and code.jquery.com, but not all at once.
Some of these errors are:
GET https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css net::ERR_CONNECTION_RESET
GET https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/fonts/glyphicons-halflings-regular.woff2 net::ERR_CONNECTION_RESET
GET https://code.jquery.com/ui/1.12.1/jquery-ui.js net::ERR_CONNECTION_RESET
I am getting similar issues in Firefox:
Loading failed for the <script> with source “https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js”.
This is happening only on my laptop. On another laptop, running the same code on that laptop's localhost, and accessed and hard refreshed through that laptop's browser works fine.
This issue started occurring only recently after I reinstalled Windows on my laptop.
I looked at some of the other questions on SO such as this, but that didn't help.

Occasional ERR_CONNECTION_RESET error when hitting Node.js Site

I recently deployed a node.js based site into load balanced servers(windows).
(Not sure if Node.js or load balancer matters in the case, but want to share the information)
When I hit the url in Chrome, I sometimes get ERR_Connection_Reset error:
For example: mysite.com/bower_components/jquery/dist/jquery.js net::ERR_CONNECTION_RESET
But if I try to hit mysite.com/bower_components/jquery/dist/jquery.js in browser, it works. Which means the path doesn't have problem.
When I hit the url in IE, I sometimes get XMLHttpRequest: Network Error 0x2eff, Could not complete the operation due to error 00002eff.
I've been scratching my head for days, any help will be appreciated!
What version of node are you using? This patch fixed a problem with idle sockets throwing ECONNRESET errors and it shipped in 4.4.0 and 5.4.0, upgrading fixed the issues for me.

PhantomJS 408 error "Socket operation timed out"

I'm getting this error when trying to open a webpage that is on the same server as the PhantomJS code. PhantomJS can open any other webpage (ssl or not) but won't open any webpage that is on my server. I always get this error and there is very little information, actually none, what "Socket operation timed out" means for PhantomJS.
I'm running CentOS 6.6 and PhantomJS 1.9.8. I tried a few PhantomJS versions already, including the latest 2.1.1 and I'm getting the same error.
The dev version of my app runs perfectly on Ubuntu 14.04 but doesn't seem to work on my production server.
I did have some luck opening webpages on this server working from another server (remote access, essentially).
Is there anything on my server (that is just running Wordpress) that can be blocking PhantomJS? The only thing I can think of is the fact I have SSL installed, but non-SSL pages also don't work.
I've tried command line and both php-phantomjs and wkhtmlpdf and always get a 408 error, unless I try another webpage that has a different IP address (google etc).
Any clue on what might be the problem?
In my case i try to get page as picture with phantomjs on same machine. I put 127.0.0.1 mysite.app in /etc/hosts. I am running laravel homestead.
I try all possible combination of options with 1.9, at the end I have realised that there is something wrong with version 1.9, because when I have switched to version 2.1.1 status 408 gone and everything forks fine.
Try changing the default user agent used by PhantomJS

Angular JS "SCRIPT5007: Object expected" error in IE9 and IE10 upon loading the angular library

I am developing an AngularJS application that should run on Firefox and IE 9 and IE 10.
I use the latest version of angularjs library (now it is 1.3.15).
The serverside is written in Java in JavaEE platform and server runs on GlassFish, and our computers run windows 7.
Everything works fine when I am running the server locally on my computer and access my application using the http://localhost:8080 url.
But in IE9 and IE10, when I try to load the application from my server by using my ip address (something like http://191.10.10.200:8080) then angularJS library fails to load. It gives an error saying:
SCRIPT5007: Object expected
angular.min.js, line 7 character 218
Can this be an issue with the security settings of IE? Or the network?
I looked for similar issues but none was talking about this problem. Please help me if have an idea how can this be resolved.
I had the same error which only occurred in IE9 and IE10 when I was loading a page requiring AngularJS.
My page was simply missing the DOCTYPE header from the top of the page:
<!DOCTYPE html>
Once I added it AngularJS loaded just fine for me.

Chrome issue : "Failed to load resource: net::ERR_CONNECTION_TIMED_OUT "

I tried to access my web application via HTTPS. It fails to load JavaScript files and shows "Failed to load resource: net::ERR_CONNECTION_TIMED_OUT". But it is working as expected in IE and Firefox. It is also working fine in Chrome via HTTP.
I started having this problem after installing the latest release of chrome 46.0.2490.80 m in an attempt to solved my previous problem of chrome displaying garbage on some sites or documents.
in my case it happens on jquery load calls. I tried to reinstall from scratch, but could not resolve the issue. I am running a local development wamp server.
For now I circumvented the problem by not using jquery. By the way the jquery calls have no problems in IE.

Categories

Resources