Giter Site home page Giter Site logo

fastify-error-page's People

Contributors

ericrglass avatar starptech avatar thenoim avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

fastify-error-page's Issues

Update Fastify Plugin

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.

fastify-error-page - expected '^3.x.x' fastify version, '4.9.2' is installed

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)

Add a catch

the promise in the handler could throw, and leave the response hanging.

Update dependencies

It would be very nice to have all bumps checked, to be sure everything is fine with latest versions of Fastify.

Many thanks !!!

Update error stack with a customised message

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

Updates

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 !

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.