What does pending mean for a request in the Chrome Developer Window?

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

This happens when my script page issues a GET request, the response of which contains content headers for loading the CSV file:

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

This works fine in FF and IE7, loading the CSV file as expected and opening the file collector to save the file, but Chrome does nothing. I confirmed that the server is responding to the request, so it seems that Chrome will not process the response.

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

FYI: Chrome 10.0.648.204 on Win-XP

+74
google-chrome
Apr 07 '11 at 18:40
source share
11 answers

In my case, I found (after repeatedly pulling hair) that the status “pending” was caused by the AdBlock extension. The image that I couldn’t upload had the word “ad” in the URL, so AdBlock didn’t load it.

Disabling AdBlock fixes this problem.

Renaming the file so that it does not contain an “ad” in the URL also fixes it and is obviously the best solution. If this is not an advertisement, then you should leave it like that. :)

+50
May 22 '13 at 17:36
source share

I also get this when using the HTTPS plugin all over the world. This plugin has a list of sites that also have https instead of http. Therefore, I assume that before the actual request is made, it is already somehow canceled.

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

Then a https://stackexchange.com request appears with full headers, etc.

Therefore, I assume that it is used for requests that are not sent.

+5
Aug 22 '12 at 17:40
source share

I am having problems with pending mp3 file request. I had a list of mp3 files and one player to play them. If I take a file that has already been uploaded, Chrome will block the request and show a “pending request” on the network tab of the developer’s tools.

All versions of Chrome seem to be affected.

Here is the solution I found:

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

You simply add a dummy query string at the end of each URL. This causes Chrome to download the file again.

Another example with a 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 caching system. This should also work the same. CSV files.

+3
Dec 01 '13 at 17:59
source share

I had a similar problem with application calls / json ajax. In ff / IE they were fine. In chrome in the "Developers Network" window, the Status is always (expected), because a different status code was returned.

In my case, I changed my Json response to send an HttpStatusCode 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 }; 
+1
Feb 15 '12 at 12:13
source share

I had the same problem on OSX Mavericks, it turned out that Sophos antivirus blocked certain requests, as soon as I deleted it, the problem disappeared.

If you think this might be caused by the extension, an easy way to try and check it out is to open chrome with the '--disable-extensions flag to see if it fixes the problem. If this doesn’t fix it, consider looking outside the browser to see if it could be causing any other application, especially security applications, that could affect your requests.

+1
Feb 18 '15 at 17:11
source share

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

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

But load.js always in pending status when looking in the network panel.

I found a workaround using asynchronous load 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 it works fine.

+1
Oct 07 '15 at 9:44
source share

I ran into this problem when I was debugging a local web application. The problem turned out to be for AVG Antivirus and Firewall restrictions. I had to allow the exception through the firewall in order to get rid of the "Waiting" status.

0
Dec 08 '13 at 10:17
source share

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

 header("Cache-Control: no-cache,no-store"); 
0
Apr 25 '15 at 9:23
source share

In my case, the update for Chrome that makes it will not load until the browser restarts. Greetings

0
Jun 22 '15 at 2:49
source share

The pending state of the network on time means that your request is in a state of progress. As soon as he answers, the time will be updated with the full elapsed time.

This figure shows that the network call is in a processing state (Pending) In this picture, the network call is in a processing state (Pending)

This figure shows the time taken to process a network call. This figure shows the time taken to process a network call.

0
Oct 11 '17 at 6:34 on
source share

I encountered the same problem when I request certain images from a page. I use JavaScript to set the src attribute of the img object, and if the network does not work well, it will be displayed in the control panel of the Chrome window. I think this is due to a bad network.

-one
May 6 '11 at 14:23
source share



All Articles