Closed zanhk closed 2 months ago
Can you try with Node and not bun and see if there's still an issue?
I tested with npm
and I m getting the same error
name: Assertions and static report
on:
workflow_dispatch:
push:
branches:
- main
jobs:
test-and-deploy:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Dependencies
run: npm install -g @unlighthouse/cli puppeteer netlify-cli
- name: Unlighthouse assertions and client
run: unlighthouse-ci --config-file "./unlighthouse.config.ts"
- name: Deploy
run: netlify deploy --dir=.unlighthouse --prod --message="New Release Deploy from GitHub Actions"
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
Run unlighthouse-ci --config-file "./unlighthouse.config.ts"
[info] [Unlighthouse] Using system chrome located at: `/usr/bin/google-chrome-stable`.
[success] [Unlighthouse] Successfully connected to `https://antares.majestico.it`. (Status: `200`).
[info] [Unlighthouse] Creating Unlighthouse using config from `/home/runner/work/antares/antares/unlighthouse.config.ts`
[info] [Unlighthouse] Found /robots.txt, using entries. Sitemaps: 1, Groups: 1.
[info] [Unlighthouse] Discovered 2 routes from 1 sitemap.
[info] [Unlighthouse] Skipping route based on include / exclude rules { path: '/cdn-cgi/l/email-protection',
include: [],
exclude: [ /^\/cdn-cgi\//, '/cdn-cgi/*' ] }
[success] [Unlighthouse] Completed `inspectHtmlTask` for `/`. (70.69 KB took 0.2s)
[info] [Unlighthouse] Skipping route based on include / exclude rules { path: '/cdn-cgi/l/email-protection',
include: [],
exclude: [ /^\/cdn-cgi\//, '/cdn-cgi/*' ] }
[success] [Unlighthouse] Completed `inspectHtmlTask` for `/prenota/`. (33.55 KB took 0.1s)
[info] [Unlighthouse] Skipping /blog. Invalid response from URL https://antares.majestico.it/blog code: [4](https://github.com/majesticostudio/antares/actions/runs/8772246234/job/24070948833#step:4:5)04.
[info] [Unlighthouse] Skipping /check-up. Invalid response from URL https://antares.majestico.it/check-up code: 404.
[info] [Unlighthouse] Skipping /chisiamo. Invalid response from URL https://antares.majestico.it/chisiamo code: 404.
[info] [Unlighthouse] Skipping /contatti. Invalid response from URL https://antares.majestico.it/contatti code: 404.
[info] [Unlighthouse] Skipping /convenzioni. Invalid response from URL https://antares.majestico.it/convenzioni code: 404.
[info] [Unlighthouse] Skipping /estetica-dentale. Invalid response from URL https://antares.majestico.it/estetica-dentale code: 404.
[info] [Unlighthouse] Skipping /feedback. Invalid response from URL https://antares.majestico.it/feedback code: 404.
[info] [Unlighthouse] Skipping /homepage. Invalid response from URL https://antares.majestico.it/homepage code: 404.
[info] [Unlighthouse] Skipping /igiene-orale. Invalid response from URL https://antares.majestico.it/igiene-orale code: 404.
[info] [Unlighthouse] Skipping /listino. Invalid response from URL https://antares.majestico.it/listino code: 404.
[info] [Unlighthouse] Skipping /ortodonzia. Invalid response from URL https://antares.majestico.it/ortodonzia code: 404.
[info] [Unlighthouse] Skipping /post/alimenti-amici-e-nemici-dei-tuoi-denti. Invalid response from URL https://antares.majestico.it/post/alimenti-amici-e-nemici-dei-tuoi-denti code: 404.
[info] [Unlighthouse] Skipping /post/come-prevenire-la-carie-nei-bambini-consigli-pratici-per-i-genitori. Invalid response from URL https://antares.majestico.it/post/come-prevenire-la-carie-nei-bambini-consigli-pratici-per-i-genitori code: 404.
[info] [Unlighthouse] Skipping /protesti-dentale. Invalid response from URL https://antares.majestico.it/protesti-dentale code: 404.
[info] [Unlighthouse] Skipping /servizi. Invalid response from URL https://antares.majestico.it/servizi code: 404.
file:///usr/local/lib/node_modules/@unlighthouse/cli/node_modules/@unlighthouse/core/node_modules/lighthouse/core/lib/lh-error.js:1[5](https://github.com/majesticostudio/antares/actions/runs/8772246234/job/24070948833#step:4:6)7
const error = new Error(`Protocol error ${errMsg}`);
^
Error: Protocol error (Target.getTargetInfo): Protocol error (Target.getTargetInfo): 'Target.getTargetInfo' wasn't found
at LighthouseError.fromProtocolMessage (file:///usr/local/lib/node_modules/@unlighthouse/cli/node_modules/@unlighthouse/core/node_modules/lighthouse/core/lib/lh-error.js:157:19)
at file:///usr/local/lib/node_modules/@unlighthouse/cli/node_modules/@unlighthouse/core/node_modules/lighthouse/core/gather/session.js:114:29
at async TargetManager._onSessionAttached (file:///usr/local/lib/node_modules/@unlighthouse/cli/node_modules/@unlighthouse/core/node_modules/lighthouse/core/gather/driver/target-manager.js:131:28) {
protocolMethod: 'Target.getTargetInfo',
protocolError: "Protocol error (Target.getTargetInfo): 'Target.getTargetInfo' wasn't found"
}
Node.js v18.20.2
Error: [Unlighthouse] Failed to run lighthouse for route Command failed with exit code 1: node /usr/local/lib/node_modules/@unlighthouse/cli/node_modules/@unlighthouse/core/dist/process/lighthouse.mjs --cache=false --routeReport={"route":{"url":"https://antares.majestico.it/"},"artifactPath":"/home/runner/work/antares/antares/.unlighthouse/reports/"} --lighthouseOptions={"onlyCategories":["performance","accessibility","best-practices","seo"],"throttlingMethod":"simulate","throttling":{"rttMs":150,"throughputKbps":1[6](https://github.com/majesticostudio/antares/actions/runs/8772246234/job/24070948833#step:4:7)38.4,"requestLatencyMs":600,"downloadThroughputKbps":1638.4,"uploadThroughputKbps":750,"cpuSlowdownMultiplier":1},"formFactor":"mobile","screenEmulation":{"mobile":true,"width":412,"height":823,"deviceScaleFactor":1.[7](https://github.com/majesticostudio/antares/actions/runs/8772246234/job/24070948833#step:4:8)5,"disabled":false},"emulatedUserAgent":"Mozilla/5.0 (Linux; Android 11; moto g power (2022)) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Mobile Safari/537.36"} --port=32975
file:///usr/local/lib/node_modules/@unlighthouse/cli/node_modules/@unlighthouse/core/node_modules/lighthouse/core/lib/lh-error.js:157
const error = new Error(`Protocol error ${errMsg}`);
^
Error: Protocol error (Target.getTargetInfo): Protocol error (Target.getTargetInfo): 'Target.getTargetInfo' wasn't found
at LighthouseError.fromProtocolMessage (file:///usr/local/lib/node_modules/@unlighthouse/cli/node_modules/@unlighthouse/core/node_modules/lighthouse/core/lib/lh-error.js:157:19)
at file:///usr/local/lib/node_modules/@unlighthouse/cli/node_modules/@unlighthouse/core/node_modules/lighthouse/core/gather/session.js:114:29
at async TargetManager._onSessionAttached (file:///usr/local/lib/node_modules/@unlighthouse/cli/node_modules/@unlighthouse/core/node_modules/lighthouse/core/gather/driver/target-manager.js:131:2[8](https://github.com/majesticostudio/antares/actions/runs/8772246234/job/24070948833#step:4:9)) {
protocolMethod: 'Target.getTargetInfo',
protocolError: "Protocol error (Target.getTargetInfo): 'Target.getTargetInfo' wasn't found"
}
Node.js v18.20.2
/usr/local/lib/node_modules/@unlighthouse/cli/node_modules/@unlighthouse/core/node_modules/lighthouse/core/lib/lh-error.js:157
const error = new Error(`Protocol error ${errMsg}`);
^
Error: Protocol error (Target.getTargetInfo): Protocol error (Target.getTargetInfo): 'Target.getTargetInfo' wasn't found
at LighthouseError.fromProtocolMessage (/usr/local/lib/node_modules/@unlighthouse/cli/node_modules/@unlighthouse/core/node_modules/lighthouse/core/lib/lh-error.js:157:1[9](https://github.com/majesticostudio/antares/actions/runs/8772246234/job/24070948833#step:4:10))
at /usr/local/lib/node_modules/@unlighthouse/cli/node_modules/@unlighthouse/core/node_modules/lighthouse/core/gather/session.js:114:29
at async TargetManager._onSessionAttached (/usr/local/lib/node_modules/@unlighthouse/cli/node_modules/@unlighthouse/core/node_modules/lighthouse/core/gather/driver/target-manager.js:131:28) {
protocolMethod: 'Target.getTargetInfo',
protocolError: "Protocol error (Target.getTargetInfo): 'Target.getTargetInfo' wasn't found"
}
Node.js v18.20.2
at makeError (/usr/local/lib/node_modules/@unlighthouse/cli/node_modules/execa/lib/error.js:60:11)
at handlePromise (/usr/local/lib/node_modules/@unlighthouse/cli/node_modules/execa/index.js:124:26)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async runLighthouseTask (/usr/local/lib/node_modules/@unlighthouse/cli/node_modules/@unlighthouse/core/dist/index.mjs:7224:19)
file:///usr/local/lib/node_modules/@unlighthouse/cli/node_modules/@unlighthouse/core/node_modules/lighthouse/core/lib/lh-error.js:157
const error = new Error(`Protocol error ${errMsg}`);
^
Error: Protocol error (Target.getTargetInfo): Protocol error (Target.getTargetInfo): 'Target.getTargetInfo' wasn't found
at LighthouseError.fromProtocolMessage (file:///usr/local/lib/node_modules/@unlighthouse/cli/node_modules/@unlighthouse/core/node_modules/lighthouse/core/lib/lh-error.js:157:19)
at file:///usr/local/lib/node_modules/@unlighthouse/cli/node_modules/@unlighthouse/core/node_modules/lighthouse/core/gather/session.js:114:29
at async TargetManager._onSessionAttached (file:///usr/local/lib/node_modules/@unlighthouse/cli/node_modules/@unlighthouse/core/node_modules/lighthouse/core/gather/driver/target-manager.js:131:28) {
protocolMethod: 'Target.getTargetInfo',
protocolError: "Protocol error (Target.getTargetInfo): 'Target.getTargetInfo' wasn't found"
}
Node.js v18.20.2
Error: [Unlighthouse] Failed to run lighthouse for route Command failed with exit code 1: node /usr/local/lib/node_modules/@unlighthouse/cli/node_modules/@unlighthouse/core/dist/process/lighthouse.mjs --cache=false --routeReport={"route":{"url":"https://antares.majestico.it/prenota/"},"artifactPath":"/home/runner/work/antares/antares/.unlighthouse/reports/prenota"} --lighthouseOptions={"onlyCategories":["performance","accessibility","best-practices","seo"],"throttlingMethod":"simulate","throttling":{"rttMs":150,"throughputKbps":1638.4,"requestLatencyMs":600,"downloadThroughputKbps":1638.4,"uploadThroughputKbps":750,"cpuSlowdownMultiplier":1},"formFactor":"mobile","screenEmulation":{"mobile":true,"width":412,"height":823,"deviceScaleFactor":1.75,"disabled":false},"emulatedUserAgent":"Mozilla/5.0 (Linux; Android 11; moto g power (2022)) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/[10](https://github.com/majesticostudio/antares/actions/runs/8772246234/job/24070948833#step:4:11)9.0.0.0 Mobile Safari/537.36"} --port=32975
file:///usr/local/lib/node_modules/@unlighthouse/cli/node_modules/@unlighthouse/core/node_modules/lighthouse/core/lib/lh-error.js:157
const error = new Error(`Protocol error ${errMsg}`);
^
Error: Protocol error (Target.getTargetInfo): Protocol error (Target.getTargetInfo): 'Target.getTargetInfo' wasn't found
at LighthouseError.fromProtocolMessage (file:///usr/local/lib/node_modules/@unlighthouse/cli/node_modules/@unlighthouse/core/node_modules/lighthouse/core/lib/lh-error.js:157:19)
at file:///usr/local/lib/node_modules/@unlighthouse/cli/node_modules/@unlighthouse/core/node_modules/lighthouse/core/gather/session.js:[11](https://github.com/majesticostudio/antares/actions/runs/8772246234/job/24070948833#step:4:12)4:29
at async TargetManager._onSessionAttached (file:///usr/local/lib/node_modules/@unlighthouse/cli/node_modules/@unlighthouse/core/node_modules/lighthouse/core/gather/driver/target-manager.js:131:28) {
protocolMethod: 'Target.getTargetInfo',
protocolError: "Protocol error (Target.getTargetInfo): 'Target.getTargetInfo' wasn't found"
}
Node.js v18.20.2
/usr/local/lib/node_modules/@unlighthouse/cli/node_modules/@unlighthouse/core/node_modules/lighthouse/core/lib/lh-error.js:157
const error = new Error(`Protocol error ${errMsg}`);
^
Error: Protocol error (Target.getTargetInfo): Protocol error (Target.getTargetInfo): 'Target.getTargetInfo' wasn't found
at LighthouseError.fromProtocolMessage (/usr/local/lib/node_modules/@unlighthouse/cli/node_modules/@unlighthouse/core/node_modules/lighthouse/core/lib/lh-error.js:157:19)
at /usr/local/lib/node_modules/@unlighthouse/cli/node_modules/@unlighthouse/core/node_modules/lighthouse/core/gather/session.js:114:29
at async TargetManager._onSessionAttached (/usr/local/lib/node_modules/@unlighthouse/cli/node_modules/@unlighthouse/core/node_modules/lighthouse/core/gather/driver/target-manager.js:131:28) {
protocolMethod: 'Target.getTargetInfo',
protocolError: "Protocol error (Target.getTargetInfo): 'Target.getTargetInfo' wasn't found"
}
Node.js v18.20.2
at makeError (/usr/local/lib/node_modules/@unlighthouse/cli/node_modules/execa/lib/error.js:60:11)
at handlePromise (/usr/local/lib/node_modules/@unlighthouse/cli/node_modules/execa/index.js:[12](https://github.com/majesticostudio/antares/actions/runs/8772246234/job/24070948833#step:4:13)4:26)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async runLighthouseTask (/usr/local/lib/node_modules/@unlighthouse/cli/node_modules/@unlighthouse/core/dist/index.mjs:7224:19)
[success] [Unlighthouse] Unlighthouse has finished scanning `https://antares.majestico.it`: 2 routes in `12s`.
[info] [Unlighthouse] Running score budgets. 50
[success] [Unlighthouse] Score assertions have passed.
[success] [Unlighthouse] Generated `jsonSimple` report `./.unlighthouse/ci-result.json`
[info] [Unlighthouse] Generating static report.
[success] [Unlighthouse] Static report is ready for uploading: `./.unlighthouse`
I then runned again with debug mode
/*
* https://unlighthouse.dev/api/config
*/
export default {
site: "https://antares.majestico.it",
scanner: {
exclude: [/^\/cdn-cgi\//],
dynamicSampling: 2,
},
ci: {
budget: 50,
buildStatic: true,
},
debug: true,
cache: false,
};
Log seem the same
Run unlighthouse-ci --config-file "./unlighthouse.config.ts"
unlighthouse-ci --config-file "./unlighthouse.config.ts"
shell: /usr/bin/bash -e {0}
[info] [Unlighthouse] Using system chrome located at: `/usr/bin/google-chrome-stable`.
[success] [Unlighthouse] Successfully connected to `https://antares.majestico.it`. (Status: `[2](https://github.com/majesticostudio/antares/actions/runs/8772272874/job/24071008601#step:4:2)00`).
[info] [Unlighthouse] Creating Unlighthouse using config from `/home/runner/work/antares/antares/unlighthouse.config.ts`
[info] [Unlighthouse] Found /robots.txt, using entries. Sitemaps: 1, Groups: 1.
Additional sitemap found during "crawl('https://antares.majestico.it/sitemap-index.xml')"
Urlset found during "crawl('https://antares.majestico.it/sitemap-0.xml')"
[info] [Unlighthouse] Discovered 2 routes from 1 sitemap.
[info] [Unlighthouse] Redirected url detected, this may cause issues in the final report. https://antares.majestico.it/
[info] [Unlighthouse] Skipping route based on include / exclude rules { path: '/cdn-cgi/l/email-protection',
include: [],
exclude: [ /^\/cdn-cgi\//, '/cdn-cgi/*' ] }
[success] [Unlighthouse] Completed `inspectHtmlTask` for `/`. (70.69 KB took 0.2s)
[info] [Unlighthouse] Skipping route based on include / exclude rules { path: '/cdn-cgi/l/email-protection',
include: [],
exclude: [ /^\/cdn-cgi\//, '/cdn-cgi/*' ] }
[success] [Unlighthouse] Completed `inspectHtmlTask` for `/prenota/`. ([3](https://github.com/majesticostudio/antares/actions/runs/8772272874/job/24071008601#step:4:3)3.55 KB took 0.1s)
[info] [Unlighthouse] Skipping /blog. Invalid response from URL https://antares.majestico.it/blog code: [4](https://github.com/majesticostudio/antares/actions/runs/8772272874/job/24071008601#step:4:5)04.
[info] [Unlighthouse] Skipping /check-up. Invalid response from URL https://antares.majestico.it/check-up code: 404.
[info] [Unlighthouse] Skipping /chisiamo. Invalid response from URL https://antares.majestico.it/chisiamo code: 404.
[info] [Unlighthouse] Skipping /contatti. Invalid response from URL https://antares.majestico.it/contatti code: 404.
[info] [Unlighthouse] Skipping /convenzioni. Invalid response from URL https://antares.majestico.it/convenzioni code: 404.
[info] [Unlighthouse] Skipping /estetica-dentale. Invalid response from URL https://antares.majestico.it/estetica-dentale code: 404.
[info] [Unlighthouse] Skipping /feedback. Invalid response from URL https://antares.majestico.it/feedback code: 404.
[info] [Unlighthouse] Skipping /homepage. Invalid response from URL https://antares.majestico.it/homepage code: 404.
[info] [Unlighthouse] Skipping /igiene-orale. Invalid response from URL https://antares.majestico.it/igiene-orale code: 404.
[info] [Unlighthouse] Skipping /listino. Invalid response from URL https://antares.majestico.it/listino code: 404.
[info] [Unlighthouse] Skipping /ortodonzia. Invalid response from URL https://antares.majestico.it/ortodonzia code: 404.
[info] [Unlighthouse] Skipping /post/alimenti-amici-e-nemici-dei-tuoi-denti. Invalid response from URL https://antares.majestico.it/post/alimenti-amici-e-nemici-dei-tuoi-denti code: 404.
[info] [Unlighthouse] Skipping /post/come-prevenire-la-carie-nei-bambini-consigli-pratici-per-i-genitori. Invalid response from URL https://antares.majestico.it/post/come-prevenire-la-carie-nei-bambini-consigli-pratici-per-i-genitori code: 404.
[info] [Unlighthouse] Skipping /protesti-dentale. Invalid response from URL https://antares.majestico.it/protesti-dentale code: 404.
[info] [Unlighthouse] Skipping /servizi. Invalid response from URL https://antares.majestico.it/servizi code: 404.
file:///usr/local/lib/node_modules/@unlighthouse/cli/node_modules/@unlighthouse/core/node_modules/lighthouse/core/lib/lh-error.js:1[5](https://github.com/majesticostudio/antares/actions/runs/8772272874/job/24071008601#step:4:6)7
const error = new Error(`Protocol error ${errMsg}`);
^
Error: Protocol error (Target.getTargetInfo): Protocol error (Target.getTargetInfo): 'Target.getTargetInfo' wasn't found
at LighthouseError.fromProtocolMessage (file:///usr/local/lib/node_modules/@unlighthouse/cli/node_modules/@unlighthouse/core/node_modules/lighthouse/core/lib/lh-error.js:157:19)
at file:///usr/local/lib/node_modules/@unlighthouse/cli/node_modules/@unlighthouse/core/node_modules/lighthouse/core/gather/session.js:114:29
at runNextTicks (node:internal/process/task_queues:[6](https://github.com/majesticostudio/antares/actions/runs/8772272874/job/24071008601#step:4:7)0:5)
at process.processImmediate (node:internal/timers:447:9)
at async TargetManager._onSessionAttached (file:///usr/local/lib/node_modules/@unlighthouse/cli/node_modules/@unlighthouse/core/node_modules/lighthouse/core/gather/driver/target-manager.js:131:28) {
protocolMethod: 'Target.getTargetInfo',
protocolError: "Protocol error (Target.getTargetInfo): 'Target.getTargetInfo' wasn't found"
}
Node.js v18.20.2
Error: [Unlighthouse] Failed to run lighthouse for route Command failed with exit code 1: node /usr/local/lib/node_modules/@unlighthouse/cli/node_modules/@unlighthouse/core/dist/process/lighthouse.mjs --cache=false --routeReport={"route":{"url":"https://antares.majestico.it"},"artifactPath":"/home/runner/work/antares/antares/.unlighthouse/reports/"} --lighthouseOptions={"onlyCategories":["performance","accessibility","best-practices","seo"],"throttlingMethod":"simulate","throttling":{"rttMs":150,"throughputKbps":1638.4,"requestLatencyMs":600,"downloadThroughputKbps":1638.4,"uploadThroughputKbps":[7](https://github.com/majesticostudio/antares/actions/runs/8772272874/job/24071008601#step:4:8)50,"cpuSlowdownMultiplier":1},"formFactor":"mobile","screenEmulation":{"mobile":true,"width":412,"height":[8](https://github.com/majesticostudio/antares/actions/runs/8772272874/job/24071008601#step:4:9)23,"deviceScaleFactor":1.75,"disabled":false},"emulatedUserAgent":"Mozilla/5.0 (Linux; Android 11; moto g power (2022)) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/10[9](https://github.com/majesticostudio/antares/actions/runs/8772272874/job/24071008601#step:4:10).0.0.0 Mobile Safari/537.36"} --port=44851
file:///usr/local/lib/node_modules/@unlighthouse/cli/node_modules/@unlighthouse/core/node_modules/lighthouse/core/lib/lh-error.js:157
const error = new Error(`Protocol error ${errMsg}`);
^
Error: Protocol error (Target.getTargetInfo): Protocol error (Target.getTargetInfo): 'Target.getTargetInfo' wasn't found
at LighthouseError.fromProtocolMessage (file:///usr/local/lib/node_modules/@unlighthouse/cli/node_modules/@unlighthouse/core/node_modules/lighthouse/core/lib/lh-error.js:157:19)
at file:///usr/local/lib/node_modules/@unlighthouse/cli/node_modules/@unlighthouse/core/node_modules/lighthouse/core/gather/session.js:114:29
at runNextTicks (node:internal/process/task_queues:60:5)
at process.processImmediate (node:internal/timers:447:9)
at async TargetManager._onSessionAttached (file:///usr/local/lib/node_modules/@unlighthouse/cli/node_modules/@unlighthouse/core/node_modules/lighthouse/core/gather/driver/target-manager.js:131:28) {
protocolMethod: 'Target.getTargetInfo',
protocolError: "Protocol error (Target.getTargetInfo): 'Target.getTargetInfo' wasn't found"
}
Node.js v18.20.2
/usr/local/lib/node_modules/@unlighthouse/cli/node_modules/@unlighthouse/core/node_modules/lighthouse/core/lib/lh-error.js:157
const error = new Error(`Protocol error ${errMsg}`);
^
Error: Protocol error (Target.getTargetInfo): Protocol error (Target.getTargetInfo): 'Target.getTargetInfo' wasn't found
at LighthouseError.fromProtocolMessage (/usr/local/lib/node_modules/@unlighthouse/cli/node_modules/@unlighthouse/core/node_modules/lighthouse/core/lib/lh-error.js:157:19)
at /usr/local/lib/node_modules/@unlighthouse/cli/node_modules/@unlighthouse/core/node_modules/lighthouse/core/gather/session.js:114:29
at runNextTicks (node:internal/process/task_queues:60:5)
at process.processImmediate (node:internal/timers:447:9)
at async TargetManager._onSessionAttached (/usr/local/lib/node_modules/@unlighthouse/cli/node_modules/@unlighthouse/core/node_modules/lighthouse/core/gather/driver/target-manager.js:131:28) {
protocolMethod: 'Target.getTargetInfo',
protocolError: "Protocol error (Target.getTargetInfo): 'Target.getTargetInfo' wasn't found"
}
Node.js v18.20.2
at makeError (/usr/local/lib/node_modules/@unlighthouse/cli/node_modules/execa/lib/error.js:60:11)
at handlePromise (/usr/local/lib/node_modules/@unlighthouse/cli/node_modules/execa/index.js:124:26)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async runLighthouseTask (/usr/local/lib/node_modules/@unlighthouse/cli/node_modules/@unlighthouse/core/dist/index.mjs:7224:19)
file:///usr/local/lib/node_modules/@unlighthouse/cli/node_modules/@unlighthouse/core/node_modules/lighthouse/core/lib/lh-error.js:157
const error = new Error(`Protocol error ${errMsg}`);
^
Error: Protocol error (Target.getTargetInfo): Protocol error (Target.getTargetInfo): 'Target.getTargetInfo' wasn't found
at LighthouseError.fromProtocolMessage (file:///usr/local/lib/node_modules/@unlighthouse/cli/node_modules/@unlighthouse/core/node_modules/lighthouse/core/lib/lh-error.js:157:19)
at file:///usr/local/lib/node_modules/@unlighthouse/cli/node_modules/@unlighthouse/core/node_modules/lighthouse/core/gather/session.js:114:29
at async TargetManager._onSessionAttached (file:///usr/local/lib/node_modules/@unlighthouse/cli/node_modules/@unlighthouse/core/node_modules/lighthouse/core/gather/driver/target-manager.js:131:28) {
protocolMethod: 'Target.getTargetInfo',
protocolError: "Protocol error (Target.getTargetInfo): 'Target.getTargetInfo' wasn't found"
}
Node.js v18.20.2
Error: [Unlighthouse] Failed to run lighthouse for route Command failed with exit code 1: node /usr/local/lib/node_modules/@unlighthouse/cli/node_modules/@unlighthouse/core/dist/process/lighthouse.mjs --cache=false --routeReport={"route":{"url":"https://antares.majestico.it/prenota/"},"artifactPath":"/home/runner/work/antares/antares/.unlighthouse/reports/prenota"} --lighthouseOptions={"onlyCategories":["performance","accessibility","best-practices","seo"],"throttlingMethod":"simulate","throttling":{"rttMs":150,"throughputKbps":1638.4,"requestLatencyMs":600,"downloadThroughputKbps":1638.4,"uploadThroughputKbps":750,"cpuSlowdownMultiplier":1},"formFactor":"mobile","screenEmulation":{"mobile":true,"width":412,"height":823,"deviceScaleFactor":1.75,"disabled":false},"emulatedUserAgent":"Mozilla/5.0 (Linux; Android 11; moto g power (2022)) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/[10](https://github.com/majesticostudio/antares/actions/runs/8772272874/job/24071008601#step:4:11)9.0.0.0 Mobile Safari/537.36"} --port=44851
file:///usr/local/lib/node_modules/@unlighthouse/cli/node_modules/@unlighthouse/core/node_modules/lighthouse/core/lib/lh-error.js:157
const error = new Error(`Protocol error ${errMsg}`);
^
Error: Protocol error (Target.getTargetInfo): Protocol error (Target.getTargetInfo): 'Target.getTargetInfo' wasn't found
at LighthouseError.fromProtocolMessage (file:///usr/local/lib/node_modules/@unlighthouse/cli/node_modules/@unlighthouse/core/node_modules/lighthouse/core/lib/lh-error.js:157:19)
at file:///usr/local/lib/node_modules/@unlighthouse/cli/node_modules/@unlighthouse/core/node_modules/lighthouse/core/gather/session.js:[11](https://github.com/majesticostudio/antares/actions/runs/8772272874/job/24071008601#step:4:12)4:29
at async TargetManager._onSessionAttached (file:///usr/local/lib/node_modules/@unlighthouse/cli/node_modules/@unlighthouse/core/node_modules/lighthouse/core/gather/driver/target-manager.js:131:28) {
protocolMethod: 'Target.getTargetInfo',
protocolError: "Protocol error (Target.getTargetInfo): 'Target.getTargetInfo' wasn't found"
}
Node.js v18.20.2
/usr/local/lib/node_modules/@unlighthouse/cli/node_modules/@unlighthouse/core/node_modules/lighthouse/core/lib/lh-error.js:157
const error = new Error(`Protocol error ${errMsg}`);
^
Error: Protocol error (Target.getTargetInfo): Protocol error (Target.getTargetInfo): 'Target.getTargetInfo' wasn't found
at LighthouseError.fromProtocolMessage (/usr/local/lib/node_modules/@unlighthouse/cli/node_modules/@unlighthouse/core/node_modules/lighthouse/core/lib/lh-error.js:157:19)
at /usr/local/lib/node_modules/@unlighthouse/cli/node_modules/@unlighthouse/core/node_modules/lighthouse/core/gather/session.js:114:29
at async TargetManager._onSessionAttached (/usr/local/lib/node_modules/@unlighthouse/cli/node_modules/@unlighthouse/core/node_modules/lighthouse/core/gather/driver/target-manager.js:131:28) {
protocolMethod: 'Target.getTargetInfo',
protocolError: "Protocol error (Target.getTargetInfo): 'Target.getTargetInfo' wasn't found"
}
Node.js v18.20.2
at makeError (/usr/local/lib/node_modules/@unlighthouse/cli/node_modules/execa/lib/error.js:60:11)
at handlePromise (/usr/local/lib/node_modules/@unlighthouse/cli/node_modules/execa/index.js:[12](https://github.com/majesticostudio/antares/actions/runs/8772272874/job/24071008601#step:4:13)4:26)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async runLighthouseTask (/usr/local/lib/node_modules/@unlighthouse/cli/node_modules/@unlighthouse/core/dist/index.mjs:7224:19)
[success] [Unlighthouse] Unlighthouse has finished scanning `https://antares.majestico.it`: 2 routes in `17s`.
[info] [Unlighthouse] Running score budgets. 50
[success] [Unlighthouse] Score assertions have passed.
[success] [Unlighthouse] Generated `jsonSimple` report `./.unlighthouse/ci-result.json`
[info] [Unlighthouse] Generating static report.
[success] [Unlighthouse] Static report is ready for uploading: `./.unlighthouse`
Tested changing the website tested
/*
* https://unlighthouse.dev/api/config
*/
export default {
site: "https://majestico.it",
scanner: {
exclude: [/^\/cdn-cgi\//],
dynamicSampling: 2,
},
ci: {
budget: 50,
buildStatic: true,
},
debug: true,
cache: false,
};
It worked, definitely a bug on https://github.com/GoogleChrome/lighthouse or a problem on the website itself as it doesn't work on page speed insight either https://pagespeed.web.dev/analysis/https-antares-majestico-it/csio0s1h42?form_factor=mobile
weird, I wonder what's the problem with the website.
Will move the issue to lighthouse
Hmm I've updated Lighthouse to v12 in v0.12.0 but maybe it's not solved entirely yet.
Hi, bug is still open on lighthouse https://github.com/GoogleChrome/lighthouse/issues/15739 so probably not
Describe the bug
Not sure if this is a bug (here).
On Github actions I get the error
Protocol error (Target.getTargetInfo): Protocol error (Target.getTargetInfo): 'Target.getTargetInfo' wasn't found
Seem like that it detect the routes correctly, but at the time it have to test the 2 routes it breaks, I saw https://github.com/GoogleChrome/lighthouse/issues/15586 but the version used should be the latest stable
[info] [Unlighthouse] Using system chrome located at: /usr/bin/google-chrome-stable.
Result looks like this https://antares-performance.netlify.app/
If I bug this is probably more a lighthouse problem (https://github.com/GoogleChrome/lighthouse) but just want to know if anyone else experiencing the same problem.
My workflow
Also tried:
Full build log:
Not sure If I m missing something,
thanks.
Reproduction
No response
System / Nuxt Info