Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Yoann MALLEMANCHE
    @YoannMa
    BTW @types/hapi is for package the package hapi, and the official package moved to @hapi/hapi this year, and you need to use @types/hapi__hapi
    the TS type are not made by the Hapi team IIRC
    This may be the issue you are facing @simonrenoult
    Neeraj Kaushik
    @neerajincaendo
    Hey all , I am unable to use flash messages using yar , does anyone have any idea ?

    await server.register([ { plugin: require('./routes/surveys') }, { plugin: require('./routes/companies') }, { plugin: yar, options: { cookieOptions: { password: 'the-password-must-be-at-least-32-characters-long', isSecure: true } } }, Vision ]);

    Using it like this

    static inviteUserShowForm(request, h) { request.yar.set('success', 'Invitation send successfully.'); return h.view('invite-user'); }

    Yoann MALLEMANCHE
    @YoannMa
    Hi, I would recommend asking on the slack channel instead, this Gitter is more or less inactive
    Neeraj Kaushik
    @neerajincaendo
    Thanks @YoannMa
    Abesse Smahi
    @smahi
    Hi
    Is there a way to catch all unhandled error exception in one place ( in some kind of midleware) ?
    Yoann MALLEMANCHE
    @YoannMa
    Hapi will return a 500 if your handler throw the exception, you can catch all of them in a preResponse extension
    Abesse Smahi
    @smahi
    @YoannMa Thank you so much.
    Abesse Smahi
    @smahi
    Is it possible to replace Joi for data validation with an other validation package let say for example https://github.com/epoberezkin/ajv
    Yoann MALLEMANCHE
    @YoannMa
    Abesse Smahi
    @smahi
    @YoannMa Thank you so much.
    Yoann MALLEMANCHE
    @YoannMa
    no worries
    Samuel Joli
    @Samueljoli
    Has anyone who's using hapi-swagger been able to successfully surface joi alternatives in SwaggerUI?
    David Clarkson
    @djclarkson
    Hey all I haven't touched hapi for a few years. Curious what is the most popular auth strategy for user accounts these days?
    Yoann MALLEMANCHE
    @YoannMa
    Hi @djclarkson , I would recommend asking on the slack channel instead, this Gitter is mostly inactive
    David Clarkson
    @djclarkson
    Ahh ok thanks.
    Alexander Cucer
    @AlexanderC
    Hi guys, have anybody of you experienced the following error? "TypeError: this.$_terms[key].slice is not a function"
    hapi 19, joi 17
    this is when connecting for example nes or other well known modules
    Alexander Cucer
    @AlexanderC
    seems like all for..in loops are failing on "super" key
    Yoann MALLEMANCHE
    @YoannMa
    Hi @AlexanderC You might want to open an issue on ask on the slack channel instead
    Alexander Cucer
    @AlexanderC
    thx
    Yoann MALLEMANCHE
    @YoannMa
    you're welcome
    millerick
    @millerick
    Based on this comment: https://github.com/hapijs/joi/issues/1601#issuecomment-431677851 what is an "inlined option" vs not?
    Arthur Fücher
    @afucher
    Hey all, I'm looking for an updated example app to check structure folders and architecture patterns used. Someone know any to share?
    Alexandre Verri
    @alexandreverri_twitter
    Hi guys, I'm using Joi Validation which is awesome. I'm having a hard time trying to implement a validation-renaming action on a schema. Do you know how to implement this? hapijs/joi#2307
    Yoann MALLEMANCHE
    @YoannMa
    Hi @alexandreverri_twitter , I would recommend asking on the slack channel instead, this Gitter is mostly inactive. You can find the link on hapi's website
    Amit Bhavikatti
    @amit4cult
    Hi, do you guys recommend me to save user details like name, token, email in my database when a oauth login is successful ?
    José Santos Martins Pereira
    @jsmpereira
    We're migrating our hapijs app from 16->17->18. There seems to have been some change to the structure of the response object. What I could access with request.response.source now I need to access with request.response.source.payload. I'm having difficulty identifying when and where that change was introduced. Could someone provide some insight. Thank you.