hemerajs / fastify-error-page Goto Github PK
View Code? Open in Web Editor NEWThe developer error page - print errors in structured HTML to the browser
License: MIT License
The developer error page - print errors in structured HTML to the browser
License: MIT License
I was wondering if you could update fastify-plugin
to 1.4.0? The old version of fastify-plugin is causing issues when trying to use fastify
2.0.0.
I have just installed fastify v4.9.2, I followed the first tutorial and was now trying some plugins.
I installed fastify-error-page v4.0.0, now when I launch my server I get this error:
[nodemon] starting node server.js
/test-fastify/node_modules/fastify-error-page/node_modules/fastify-plugin/plugin.js:121
throw new Error(fastify-plugin: ${pluginName} - expected '${version}' fastify version, '${fastifyVersion}' is installed)
^
Error: fastify-plugin: fastify-error-page - expected '^3.x.x' fastify version, '4.9.2' is installed
at checkVersion (/test-fastify/node_modules/fastify-error-page/node_modules/fastify-plugin/plugin.js:121:11)
at plugin (/test-fastify/node_modules/fastify-error-page/node_modules/fastify-plugin/plugin.js:42:5)
at Object.<anonymous> (/test-fastify/node_modules/fastify-error-page/index.js:22:18)
at Module._compile (node:internal/modules/cjs/loader:1101:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object.<anonymous> (/test-fastify/server.js:6:22)
the promise in the handler could throw, and leave the response hanging.
It would be very nice to have all bumps checked, to be sure everything is fine with latest versions of Fastify.
Many thanks !!!
Thanks @StarpTech for making this !! really beautiful and handy.
I want to add a general (in all errors) and custom message, on the whole Fastify app. The idea is just to remember follow forkers they can contribute directly on github through a link.
Is this possible with the options ? Because adding this as an Error
instance, needs to be done all over the place, and also would not catch other unhandled errors.
Thanks a lot
Hi @hemerajs
Could you please merge the automatic security updates ?
This is a great package but also vulnerable to security issue (I guess based a lot on streams and files which are always moving)
I would have updated these if there were automated tests. So I let you validate them.
Many thanks again !
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.