Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ajax not working with SSL on IE error code 12019

I am working on a web application built on Java, JSP, Ajax the servers are JBoss with front in Apche 2 server. The application is accessed over the internet. clients are using mostly IE 7, 8, 9 Browsers.

The application was working perfectly before.Recently we applied SSL certificates over the site, after this we started getting complaints from the user that pages where Ajax is applied are not submitting. Normally we call the ajax on submit button and block the page till response is received from the server. we applied loggers and found that the ajax request calls are failed with ajax jqXHR error status as 12019.

We observed that this error is observed by the users where IE (mostly version 8 and 9) is used. the pattern of error is also not same. some time the same user able to submit page who complaint earlier and some time not. i tried best to produce this scenario over my local and development environment but could not.

i google the problem and found something that 12019 error code is a bug of IE. but why it worked before applying the SSL,
and if SSL is not correct why the problem is only at the ajax page why not somewhere else. I cant say users to change the browser.

This driving me crazy for more then a week. Please help me if anyone else has observed and solve this before.

like image 787
Tayab Hussain Avatar asked Feb 05 '15 10:02

Tayab Hussain


People also ask

Why won’t my Ajax calls work with Internet Explorer?

When you do the same with Internet Explorer you’ll notice something strange happen, or rather, not happening. The requests are not being made at all, they are being totally ignored by Internet Explorer. What is happening is that you’re likely making a GET request to a web service for your AJAX call.

What are SSL connection issues?

While browsing the internet, you may face a variety of SSL connection issues. Some of these errors are caused by server-side issues, while issues with local setup cause others. Broadly specifying, the SSL connection errors will prevent you from browsing a website securely over the Hypertext Transfer Protocol Secure (HTTPS).

How to fix SSL connection error on Windows 10?

Here is a list of the seven best fixes that you must try to resolve the SSL connection error. Fix 1: Correcting the device’s data and time settings. This may appear to be the most straightforward and most obvious remedy, but customers commonly encounter this issue because their date and time settings are incorrect.

What happens if I Disconnect my WiFi before sending Ajax request?

If I disconnect my wifi before sending an ajax request on the IE 10 and FF, the request is aborted. The HTTP status code is 0 and response body is empty. On IE 8, the response code is 12007 or 12019 and response body is also empty. I have to have some error handling for aborted requests.


1 Answers

This is due to IE attempting to cache something it shouldnt.

There are 2 options

  1. Add no cache headers "If-Modified-Since", "Thu, 1 Jan 1970 00:00:00 GMT" "Cache-Control", "no-cache"

  2. Append a cache busting parameter "x-1&y=2...&ieispoo="+Date.now()

I realize this is an old question, but someone else might benefit from the answer.

like image 136
Johnny Harlamert Avatar answered Nov 15 '22 20:11

Johnny Harlamert