OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

Why does XHR Request randomly get ERR_SSL_PROTOCOL_ERROR?

  • Thread starter Thread starter elif erdil
  • Start date Start date
E

elif erdil

Guest
We have a really old web application which uses JSP, plain JS and Java 8 running on JBOSS servers and ERR_SSL_PROTOCOL_ERROR randomly occurs whenever application tries to get a resource or make an XHR post request. This error occurs randomly, one minute there is no problem with the request, immediately after that the same request gets the error. If this is a certificate or SSL problem, it would occur all the time. And i can't see the detail of the error, just ERR_SSL_PROTOCOL_ERR. This application uses iframes. And CORS policy is set to same-origin. So there is no problem with that also. The status of XHR Request is 0 and statusText is empty. How can I get the detail of this error? By the way we can't find any log of this request on the server or anywhere else, it is like it's blocked by the browser somehow. Users access this application from Chrome.

This is my XHR request code:

Code:
thisRequestObject.onreadystatechange = processRequest;
function processRequest() {
if (thisRequestObject.readyState == 4) {
    if (thisRequestObject.status == 200) {
        if (callbackFunction)
            callbackFunction(thisRequestObject);
    } else {
        alert("There was an error: (" + thisRequestObject.status + ") " + thisRequestObject.statusText);
    }
}

}

Code:
this.sendPostData = function()
{
    if (theURL)
    {
        thisRequestObject.open("POST", theURL, true);
        thisRequestObject.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
        thisRequestObject.send(sendString);
    }
};

When this error occurs, i don't see any response and response headers.

For example;

enter image description here

enter image description here

<p>We have a really old web application which uses JSP, plain JS and Java 8 running on JBOSS servers and ERR_SSL_PROTOCOL_ERROR randomly occurs whenever application tries to get a resource or make an XHR post request. This error occurs randomly, one minute there is no problem with the request, immediately after that the same request gets the error. If this is a certificate or SSL problem, it would occur all the time. And i can't see the detail of the error, just ERR_SSL_PROTOCOL_ERR. This application uses iframes. And CORS policy is set to same-origin. So there is no problem with that also. The status of XHR Request is 0 and statusText is empty. <strong>How can I get the detail of this error?</strong>
By the way we can't find any log of this request on the server or anywhere else, it is like it's blocked by the browser somehow. Users access this application from Chrome.</p>
<p>This is my XHR request code:</p>
<pre><code>thisRequestObject.onreadystatechange = processRequest;
function processRequest() {
if (thisRequestObject.readyState == 4) {
if (thisRequestObject.status == 200) {
if (callbackFunction)
callbackFunction(thisRequestObject);
} else {
alert("There was an error: (" + thisRequestObject.status + ") " + thisRequestObject.statusText);
}
}
</code></pre>
<p>}</p>
<pre><code>this.sendPostData = function()
{
if (theURL)
{
thisRequestObject.open("POST", theURL, true);
thisRequestObject.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
thisRequestObject.send(sendString);
}
};
</code></pre>
<p>When this error occurs, i don't see any response and response headers.</p>
<p>For example;</p>
<p><a href="https://i.sstatic.net/4ftgczLj.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/4ftgczLj.png" alt="enter image description here" /></a></p>
<p><a href="https://i.sstatic.net/CbI6yI4r.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/CbI6yI4r.png" alt="enter image description here" /></a></p>
 

Latest posts

Top