How To Fix ‘ERR_EMPTY_RESPONSE’ or No Data Received Error

Like each component of the digital world, web pages to have a process with which they run. The user sends a request to the server, and the server responds by displaying on the webpage.

However, it is not necessary for this process to always work with the utmost fluency. It is very much prone to errors, one of the most common ones being the ‘ERR_EMPTY_RESPONSE or No Data Received‘ Error.

ERR_EMPTY_RESPONSE or No Data Received Error

This error occurs when the following error code presents itself on your screen: ‘ERR_EMPTY_RESPONSE‘; thus restricting your page from loading. Countless users in the past have reported this mishap, so it will be of no surprise if you have experienced it too.

Ideally, it is not website-specific. It appears when your browser is unable to respond to your request, no matter what kind of webpage you are trying to load.

In the realm of web browsing, encountering an error message isn’t uncommon. One such error that often leaves users puzzled is ERR_EMPTY_RESPONSE.

This guide aims to provide an in-depth understanding of what this error means, why you may see a message stating “This page isn’t working,” and how you can check for an empty response in JavaScript.


ERR_EMPTY_RESPONSE is an error message that often appears in Google Chrome and other web browsers. It indicates that the server closed the connection without sending any data.

In simpler terms, the browser attempted to load a website or web application but received an empty response from the server, resulting in a failure to load the page.


Understanding the root causes behind ERR_EMPTY_RESPONSE is crucial for effective troubleshooting. Here are some common reasons:

  1. Server Issues: The server hosting the web page might be down or overloaded.
  2. Network Configuration: Incorrect or unstable network settings can also cause this error.
  3. Browser Cache: Outdated or corrupted browser cache files might lead to ERR_EMPTY_RESPONSE.
  4. Firewall or Security Software: Sometimes, firewall settings or third-party security software can block the connection.
  5. Cookies: Corrupted cookies can also result in this error.

Ways To Fix ERR_EMPTY_RESPONSE or No Data Received Error

Here are some ways you can try adapting to fix ERR_EMPTY_RESPONSE or No Data Received Error:

Solution 1: Reset Winsock

Winsock is a supporting program that caters to the input and output requests put forth by internal applications of the computer. A lot of times, it could be the reason triggering the error. The way to reset Winsock is as follows:

Step 1: Go to the Search Panel in Windows. In the dialogue box, manually type in the word ‘cmd‘.

Step 2: When the ‘Command Prompt‘ appears on the list, right-click on it, and select ‘Run as Administrator‘.

Fix ERR_EMPTY_RESPONSE or No Data Received

Step 3: In the next window that opens type the words ‘netsh winsock reset‘ and press Enter.

Run netsh winsock reset command to fix err_empty_response

Step 4: Finally, Restart your system to check if the ERR_EMPTY_RESPONSE or No Data Received error has been resolved.

That’s all you need to do and now can restart your computer and see if the ERR_EMPTY_RESPONSE or No Data Received Error has gone or not. In case the error persists, then you can opt for the other methods given below.

Also Read:

Solution 2: Reset Network Stack

Resetting Network Stack might help you to get rid of this “ERR_EMPTY_RESPONSE” error message. It is yet another simple method which only needs a few minutes and thus, will further save your browsing time.

To get rid of ERR_EMPTY_RESPONSE error and to enjoy your browsing session without any obstacle, you need to perform some simple steps, and those are:

Step 1: To start with, press the Windows key and the letter ‘X‘ simultaneously. It will take you to a menu of options.

Step 2: From the options, select the one that says ‘Command Prompt (Admin)‘.

Command Prompt Admin

Step 3: In the next window that opens, copy and paste the following commands one by one and press Enter.

Type Commands to Fix Err_Empty_Response or No Data Received Error





netsh winsock reset catalog

netsh int ipv4 reset reset.log

netsh int ipv6 reset reset.log



Step 4: Once done, Restart your computer.

Step 5: Open your browser and start the same webpage you were earlier facing a problem with. Check if the error continues to occur.

Now, you can check that site again to know whether the method worked or not. If the ERR_EMPTY_RESPONSE error did not come up, you can have a sigh of relief and can continue with your work.

Solution 3: Hosting Provider

This issue is also faced by users whose websites are managed by WordPress. It occurs due to server or host cache such as Memcache or APC cache or “plugin conflicts in WordPress”. To avoid this, you can contact your hosting provider and ask them to see if the site can be restored from a backup.

Hosting Provider

Sometimes, updates on any plugins or server sides like “WordPress updating automatically” can also be responsible for this “ERR_EMPTY_RESPONSE” error message.

Thus, inform your hosting provider about this and ask them to restore your site if possible. It will most probably solve your issue.

Why Does it Say “This Page Isn’t Working”?

When you encounter the ERR_EMPTY_RESPONSE error, you might also see a message saying “This page isn’t working.”

This is essentially a user-friendly way to inform you that the server couldn’t process your request, usually because it couldn’t send any data in response. The reasons for this could be among those listed above, such as server issues or network misconfigurations.

How to Check if Response is Not Empty in JavaScript

If you’re a developer and want to check whether a server response is empty or not using JavaScript, you can do so using the following methods:

Using Fetch API

.then(response => response.json())
.then(data => {
if (Object.keys(data).length === 0) {
console.log('Empty Response');
} else {
console.log('Response received:', data);
.catch(error => {
console.error('An error occurred:', error);

Using XMLHttpRequest

const xhr = new XMLHttpRequest();'GET', '', true);
xhr.onreadystatechange = function() {
if (xhr.readyState == 4 && xhr.status == 200) {
const data = JSON.parse(xhr.responseText);
if (Object.keys(data).length === 0) {
console.log('Empty Response');
} else {
console.log('Response received:', data);

Both of these examples check whether the response object (data in these cases) is empty or not. An empty response is indicated by an object with no properties (i.e., its length is zero).

Similar Posts:


ERR_EMPTY_RESPONSE or No Data Received Error is a very common one and can very possibly present itself in more than 99% of the websites that you search online. It can be rectified with utmost ease and simplicity so that you can go ahead with your surfing without any trouble.

ERR_EMPTY_RESPONSE is an error message that denotes an issue with either the server, your network configuration, or possibly your local cache or cookies. It can be frustrating to encounter, but understanding its root causes can facilitate troubleshooting.

For developers, checking for an empty response in JavaScript is straightforward with methods like Fetch API or XMLHttpRequest. Armed with this knowledge, you’ll be better equipped to understand and resolve this vexing issue.