-
-
Notifications
You must be signed in to change notification settings - Fork 612
logs from sitespeedio and insert custom headers #4462
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
Comments
Hi @Domanicfaf for getting the logs, make sure each parameter that is going to browsertime, has the browsertime path of the key, that will also make more sense if you move the configuration to a config json file. For me these works: To verify if the request header works, you can use, that will echo out the request header you add: |
Hey @soulgalore , that worked pretty good thanks. Now I am getting But the console logs as usual has only Warning logs even though I have |
So right now I only get logs of |
For Chrome console log, it is set to ALL https://github.com/sitespeedio/browsertime/blob/24f58672fde099d0bc019405feff10a46b1392df/lib/edge/webdriver/builder.js#L62 so I think it gives you whatever Chrome provides. |
For logLevel (that was just released in the latest release) you set the log level for the sitespeed.io/browsetime log, not Chromedriver/Geckordriver and other logs, they are separate. |
Thanks for the help. |
Hey @soulgalore could you help me understand the mobile emulation part on sitespeed. I have read the documentation for mobile emulation. Referred links are as follows
So below are my questions regarding it AndroidWhen I run MobileI was able to use --browsertime.chrome.mobileEmulation.deviceNameThis allowed me to select another mobile device which is great but then whats the difference between Also one followup question is why the --android argument asks for developer mode but the other arguments work without it. |
I created #4492 for you (instead of hijacking the old issue :)) |
Debugging logs and custom header insertion
Command
sitespeed.io {url} --xvfb --browsertime.enableVideoRun false --browsertime.visualMetrics false --browsertime.chrome.windowRecorder false --chrome.windowRecorder false --video false --headless true --browsertime.chrome.args no-sandbox --chrome.enableChromeDriverLog true --chrome.enableVerboseChromeDriverLog true --chrome.collectPerfLog true --chrome.collectNetLog true --chrome.netLogCaptureMode Everything --chrome.collectConsoleLog true --logLevel trace --outputFolder $(pwd)/{result_dir} -n 1
Versions:
sitespeed.io
36.4.1
npm
10.8.2
node
v20.18.3
Scenario
Debugging logs
I am currently using the following command, but I'm only receiving the following log files:
However, I need the following logs as well:
Additionally, the console logs are not being populated as expected.
To summarize, I am looking for the logs that will help me debug in case an error occurs for any URL in Sitespeed as I am running this command via python code
Custom header
Also 1 more thing.
I tried to insert a custom header using
--browsertime.requestheader 'key: value'
as the url does not allow access until that header is present, but the site was still not accessible as per screenshots. So are custom headers not allowed in headless mode of chrome?Any suggestions on above 2 scenarios
The text was updated successfully, but these errors were encountered: