google / google-visualization-issues

288 stars 35 forks source link

Random timeout when loading the loader #2522

Open mpgo13 opened 7 years ago

mpgo13 commented 7 years ago

We are experiencing issues with Firefox at the moment. Requesting the url "https://www.gstatic.com/charts/loader.js" sometimes results into Firefox being stuck loading forever with "Transferring data from www.gstatic.com..." being in the statusbar.

image

Can be reproduced with the following python script using selenium and firefox:


from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities

desired_cap = {'os': 'Windows', 'os_version': '7', 'browser': 'Firefox' }

driver = webdriver.Remote(
    command_executor='http://<user>:<password>@hub.browserstack.com:80/wd/hub',
    desired_capabilities=desired_cap)

for num in range(0,1000):
    url = "https://www.gstatic.com/charts/loader.js?ver=%d" % num
    print "GET \"%s\"" % url
    driver.get(url)

driver.quit()
mpgo13 commented 7 years ago

The purpose of the script is to reproduce the issue. We are running automated user acceptance tests with selenium, where we are loading the resource as documented in a normal scenario. Since ~12 July, we experiencing this issue and it keeps us from executing our automated tests.

dlaliberte commented 7 years ago

Hi Martin,

I've noticed some occasional extended delays even in Chrome, so I don't think this is browser related. It might be the server is starting to throttle requests if there are too many in a short period of time. At the moment, the cache time-to-live for the loader is set at only 1 minute, so I can quickly update it if need be. But I will reduce that to 1 hour, and maybe that will help.

On Wed, Jul 19, 2017 at 10:40 PM, Martin Pfleger notifications@github.com wrote:

We are experiencing issues with Firefox at the moment. Requesting the url " https://www.gstatic.com/charts/loader.js" sometimes results into Firefox being stuck loading forever with "Transferring data from www.gstatic.com..." being in the statusbar.

[image: image] https://user-images.githubusercontent.com/1078584/28397969-351897c2-6d48-11e7-87c7-2768116538e0.png

Can be reproduced with the following python script using selenium and firefox:

from selenium import webdriver from selenium.webdriver.common.keys import Keys from selenium.webdriver.common.desired_capabilities import DesiredCapabilities

desired_cap = {'os': 'Windows', 'os_version': '7', 'browser': 'Firefox' }

driver = webdriver.Remote( command_executor='http://:@hub.browserstack.com:80/wd/hub', desired_capabilities=desired_cap)

for num in range(0,1000): url = "https://www.gstatic.com/charts/loader.js?ver=%d" % num print "GET \"%s\"" % url driver.get(url)

driver.quit()

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/google/google-visualization-issues/issues/2522, or mute the thread https://github.com/notifications/unsubscribe-auth/AAizDax-n03J130hDKcsIxyx6JtSr9EQks5sPr4KgaJpZM4OdiIC .

-- Daniel LaLiberte https://plus.google.com/100631381223468223275?prsrc=2 dlaliberte@Google.com dlaliberte@google.com 5CC, Cambridge MA