-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Page timeout => PROTOCOL_TIMEOUT on Network.emulateNetworkConditions #11427
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
More broadly I want to try to almost completely eliminate PROTOCOL_TIMEOUT by adding a version of sendCommand that checks to see if Chrome is truly hung and just moves on if it's still responding. Yes, it technically represents something unexpected but the Lighthouse failure case is so painful and there's so little movement to ever actually fix any of these in Chromium (and I believe unrealistic to expect all of them to ever be fixed). Commands whose return type is void don't need to become fatal if Chrome never acks them... |
we'll do this. timeout if the document itself is taking a longass time.
i'll file a bug for this.
sounds good, too. |
Unexpected error... if you have a page that times out because it never finishes loading.. Lighthouse actually completes with this:
Runtime error encountered: Waiting for DevTools protocol response has exceeded the allotted time. (Method: Network.emulateNetworkConditions) LHErr or: PROTOCOL_TIMEOUT
verbose log sample
repro:
yarn static-server
node lighthouse-cli "http://localhost:10200/online-only.html?delay=75000"
The
emulateNetworkConditions
call comes from here:lighthouse/lighthouse-core/gather/gather-runner.js
Lines 756 to 757 in a1571ba
and if that line is commented out.. we'd get
The page provided is not HTML (served as MIME type )
as both a runtimeError and runWarning.It's possible this root cause (a page that never loads) is what's behind some of these filed emulateNetworkConditions issues.
Possible LH fix: adding explicit detection of a page timeout.
Possible Chrome fix:
Network.emulateNetworkConditions
shouldn't timeout if the page is in a ~hung state.The text was updated successfully, but these errors were encountered: