What does "pending" mean for request in Chrome Developer Window?

HttpGoogle Chrome

Http Problem Overview


What does "Pending" mean under the status column in the "Network" tab of Google Chrome Developer window?

This happens when my page script issues a GET request whose response contains content-headers for downloading a CSV file:

Content-type: text/csv;
Content-Disposition: attachment; filename=myfile.csv

This works fine in FF and IE7, downloading a CSV file as expected and opening a file picker to save the file, but Chrome does nothing. I confirmed that the server responds to the request, so it appears that Chrome will not process the response.

Curiously, all works as expected if I type the URL into Chromes address bar and hit .

FYI: Chrome 10.0.648.204 on Win-XP

Http Solutions


Solution 1 - Http

In my case, I found that the "pending" status was caused by the AdBlock extension. The image that I couldn't get to load had the word "ad" in the URL, so AdBlock kept it from loading.

Disabling AdBlock fixes this issue.

Renaming the file so that it doesn't contain "ad" in the URL also fixes it, and is obviously a better solution. Unless it's an advertisement, in which case you should leave it like that.

Solution 2 - Http

I also get this when using the HTTPS everywhere plugin. This plugin has a list of sites that also have https instead of http. So I assume before the actual request is made it is already being cancelled somehow.

So for example when I go to http://stackexchange.com, in Developer I first see a request with status (terminated). This request has some headers, but only the GET, User-Agent, and Accept. No response as well.

Then there is request to https://stackexchange.com with full headers etc.

So I assume it is used for requests that aren't sent.

Solution 3 - Http

I had some problems with pending request for mp3 files. I had a list of mp3 files and one player to play them. If I picked a file that had already been downloaded, Chrome would block the request and show "pending request" in the network tab of the developer tools.

All versions of Chrome seem to be affected.

Here is a solution I found:

player[0].setAttribute('src','video.webm?dummy=' + Date.now());

You just add a dummy query string to the end of each url. This forces Chrome to download the file again.

Another example with popcorn player (using jquery) :

url = $(this).find('.url_song').attr('url');
pop = Popcorn.smart( "#player_",  url + '?i=' + Date.now());

This works for me. In fact, the resource is not stored in the cache system. This should also work in the same way for .csv files.

Solution 4 - Http

I had the same issue on OSX Mavericks, it turned out that Sophos anti-virus was blocking certain requests, once I uninstalled it the issue went away.

If you think that it might be caused by an extension one easy way to try and test this is to open chrome with the '--disable-extensions flag to see if it fixes the problem. If that doesn't fix it consider looking beyond the browser to see if any other application might be causing the problem, specifically security apps which can affect requests.

Solution 5 - Http

I had a similar issue with application/json ajax calls. In ff/IE they were fine. In chrome in the Developer Network window Status was always (pending) because a different status code was being returned.

In my case I changed my Json response to send a HttpStatusCode of 200 then Chrome was fine and the Status Text changed to 200 OK.

For example using ASP.NET Web Api

 return new HttpResponseMessage(HttpStatusCode.OK ) {
            Content = request.Content
        };

Solution 6 - Http

The fix, for me, was to add the following to the top of the php file which was being requested.

header("Cache-Control: no-cache,no-store");

Solution 7 - Http

The Network pending state on time, means your request is in progressing state. As soon as it responds the time will be updated with total elapsed time.

This picture shows the network call is in processing state(Pending) This picture shows the network call is in processing state(Pending)

This picture shows the time taken in processing by network call. This picture shows the time taken in processing by network call

Solution 8 - Http

Same problem with Chrome : I had in my html page the following code :

<body>
  ...
  <script src="http://myserver/lib/load.js"></script>
  ...
</body>

But the load.js was always in status pending when looking in the Network pannel.

I found a workaround using asynchronous load of load.js:

<body>
  ...
  <script>
    setTimeout(function(){
      var head, script;
      head = document.getElementsByTagName("head")[0];
      script = document.createElement("script");
      script.src = "http://myserver/lib/load.js";
      head.appendChild(script);
    }, 1);
  </script>
  ...
</body>

Now its working fine.

Solution 9 - Http

Encountered a similar issue recently. My App is in angular 11 and we have a form with some validators which have regex to validate the data. One of data element had a special character which the regex wasn't handling and it made the entire browser hung up. Infact, even though all network calls were successful with 200 Ok, chrome was not showing any response returned by the backend and was also showing the requests in Pending State when infact all network calls are successful, there was no console log errors or anything. Handling the regex fixed the issue. After i found the issue, i googled more about it. Here is more explanation about it. https://javascript.info/regexp-catastrophic-backtracking

Solution 10 - Http

I came across this issue when I was debugging a local web application. The issue turned out to be AVG Antivirus and Firewall restrictions. I had to allow an exception through the firewall to get rid of the "Pending" status.

Solution 11 - Http

In my case, there's an update for Chrome that makes it won't load before you restart the browser. Cheers

Solution 12 - Http

I encountered the same problem when I request certain images from page. I use JavaScript to set the src attribute of an img object and if the network is poor pending will be displayed in the network panel of chrome developer window. I think it's due to the poor network.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionLawrence I. SidenView Question on Stackoverflow
Solution 1 - HttpRobin DaughertyView Answer on Stackoverflow
Solution 2 - HttpnobodyView Answer on Stackoverflow
Solution 3 - HttpNeckoView Answer on Stackoverflow
Solution 4 - HttpSantiago AngelView Answer on Stackoverflow
Solution 5 - HttpJafinView Answer on Stackoverflow
Solution 6 - HttpAnonymousView Answer on Stackoverflow
Solution 7 - HttpHarendra Kr. JadonView Answer on Stackoverflow
Solution 8 - HttpSebastienCView Answer on Stackoverflow
Solution 9 - HttpPrateek khannaView Answer on Stackoverflow
Solution 10 - HttpSanjeet SahayView Answer on Stackoverflow
Solution 11 - HttpStefanus DiptyaView Answer on Stackoverflow
Solution 12 - Httpjz1108View Answer on Stackoverflow