sitespeedio / sitespeed.io

sitespeed.io is an open-source tool for comprehensive web performance analysis, enabling you to test, monitor, and optimize your website’s speed using real browsers in various environments.
https://www.sitespeed.io/
MIT License
4.76k stars 602 forks source link

What is the solution to HAR export error from firefox - timeout #1345

Closed softwareklinic closed 8 years ago

softwareklinic commented 8 years ago

[2016-11-23 07:59:03] Couldn't generate the HAR from Firefox from the HAR Export Trigger. [2016-11-23 07:59:03] ScriptTimeoutError: Timed out at WebDriverError (/usr/src/app/node_modules/selenium-webdriver/lib/error.js:27:5) at ScriptTimeoutError (/usr/src/app/node_modules/selenium-webdriver/lib/error.js:203:5) at Object.throwDecodedError (/usr/src/app/node_modules/selenium-webdriver/lib/

softwareklinic commented 8 years ago

--browsertime.timeouts.script 80000

found it

soulgalore commented 8 years ago

@softwareklinic did it work for you? then we should increase the default timeout limit. I got the impression before that theres a bug in the HAR generation i Firefox so that causes a problem maybe have the timeout to low?

softwareklinic commented 8 years ago

running the test....

jangrewe commented 7 years ago

Works for me with these versions:

Mozilla Firefox 50.1.0
[2017-02-02 10:52:19] Versions OS: linux 4.8.0-34-generic nodejs: v6.9.1 sitespeed.io: 4.3.9 browsertime: 1.0.0-beta.23 coach: 0.30.4
jangrewe commented 7 years ago

I spoke too soon... it only works if i do 1 run.

soulgalore commented 7 years ago

Hey @jangrewe can you show me how you run and what kind of error you get (was it the same script timeout error?)? Think the HAR Export Trigger could have problems with some URLs?

jangrewe commented 7 years ago

Sure @soulgalore, here's my command line:

docker run --privileged --shm-size=512m --rm -v $(pwd):/sitespeed.io sitespeedio/sitespeed.io --video --speedIndex --gpsi.key "<secret>" --graphite.host 172.17.0.1 -n 3 -b firefox --browsertime.timeouts.script 80000 --firstParty ".*quazer\.com" --outputFolder "./reports/quazer.com" https://quazer.com/
soulgalore commented 7 years ago

Had a quick look, could it be when the video is playing that the HAR export doesn't work? We use the har-api-ready event and I think that the event isn't fired: https://github.com/firebug/har-export-trigger/wiki/Examples#har-api-ready

I'm not familiar with the code for HAR export trigger, If you have time it would be super if you could report the bug to the project here.

Best Peter

jangrewe commented 7 years ago

Yup, just opened an issue with them (see above). =)