profile . repositories . public learning . sponsor . linked in
vczb / lighthouse-reporter Goto Github PK
View Code? Open in Web Editor NEWGenerate lighthouse reports and save it in a mongo database.
License: MIT License
Generate lighthouse reports and save it in a mongo database.
License: MIT License
This error occur when dispatch a report
LH:status Generating results... +3ms
Report is done for https://vczb.github.io/about
Report finished
Report data:
[
{
url: 'https://vczb.github.io/',
accessibility: 81,
best: 92,
performance: 76,
pwa: 30,
seo: 98
},
{
url: 'https://vczb.github.io/about',
accessibility: 71,
best: 92,
performance: 67,
pwa: 20,
seo: 97
}
]
TypeError [ERR_INVALID_PROTOCOL]: Protocol "https:" not supported. Expected "http:"
at new NodeError (node:internal/errors:371:5)
at new ClientRequest (node:_http_client:158:11)
at Object.request (node:http:96:10)
at /home/vini/src/lighthouse-reporter/src/app/controllers/trigger.controller.ts:111:28
at step (/home/vini/src/lighthouse-reporter/src/app/controllers/trigger.controller.ts:33:23)
at Object.next (/home/vini/src/lighthouse-reporter/src/app/controllers/trigger.controller.ts:14:53)
at fulfilled (/home/vini/src/lighthouse-reporter/src/app/controllers/trigger.controller.ts:5:58)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
code: 'ERR_INVALID_PROTOCOL'
}
[nodemon] app crashed - waiting for file changes before starting...
In order to get rid of multiple try-catch blocks, I want to create a file under the utilities folder to achieve this. If it is a good idea, can you assign this to me? Thank you.
Should add clear information about how to contribute. Fork, clone, create a branch, etc... Also, is very important explain how to update your forked repository after some changes ( with rebase ).
Fell free to research on others repositories and google for examples.
thanks
any question I'm available
Sep 3 08:49:11 PM (node:52) UnhandledPromiseRejectionWarning: Error
Sep 3 08:49:11 PM at new LauncherError (/opt/render/project/src/node_modules/chrome-launcher/src/utils.ts:31:18)
Sep 3 08:49:11 PM at new ChromePathNotSetError (/opt/render/project/src/node_modules/chrome-launcher/dist/utils.js:33:9)
Sep 3 08:49:11 PM at Object.linux (/opt/render/project/src/node_modules/chrome-launcher/src/chrome-finder.ts:153:11)
Sep 3 08:49:11 PM at Function.getFirstInstallation (/opt/render/project/src/node_modules/chrome-launcher/src/chrome-launcher.ts:192:61)
Sep 3 08:49:11 PM at Launcher.launch (/opt/render/project/src/node_modules/chrome-launcher/src/chrome-launcher.ts:262:37)
Sep 3 08:49:11 PM at Object.launch (/opt/render/project/src/node_modules/chrome-launcher/src/chrome-launcher.ts:73:18)
Sep 3 08:49:11 PM at /opt/render/project/src/src/services/lighthouse.ts:5:39
Sep 3 08:49:11 PM at step (/opt/render/project/src/src/services/lighthouse.ts:33:23)
Sep 3 08:49:11 PM at Object.next (/opt/render/project/src/src/services/lighthouse.ts:14:53)
Sep 3 08:49:11 PM at /opt/render/project/src/src/services/lighthouse.ts:8:71
Sep 3 08:49:11 PM (Use `node --trace-warnings ...` to show where the warning was created)
Sep 3 08:49:11 PM (node:52) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
use this example as reference: https://github.com/vczb/be-the-hero/blob/master/backend/src/routes.js
some places are using require and others import. make it homogeneous
I would create a folder which contains "Global Error Handler". Can you assign this issue to me?
Some responses are returning unnecessary data like "_id"
and "__v"
Let's cleanup the response JSON and return only what is needed
In the README we have the API documentation, which should be updated too
remove enpoints from server.ts
create a routes.ts file
import it on server.ts
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.