by

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
    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.
    Rajiv Mothilal
    @rmothilal
    Hi I wanted to know if it is possible to not allow unknown headers globally with hapi?
    José Santos Martins Pereira
    @jsmpereira
    Please disregard my inquiry. It turns out it was something with another part of our codebase, where the raw response was being returned instead of the response payload.
    Anukul Sangwan
    @anukul
    Hi! I'm not able to figure out how to use @hapi/call with @hapi/hapi.. like how do I mount the router to the server? 🤔
    sikorsky555
    @sikorsky555
    I am working on upgrading an application to the latest express-validation which was using the old form of Joi. After the upgrade, none of the body objects are mutated as they were before. In particular, date objects are still strings which breaks things. We were just chaining the validation with a wrap function which takes in request, response and next. Do we need to upgrade our process to call the validation differently now?
    sikorsky555
    @sikorsky555
    route.post('/some_route', validate({
    body: {
    end_date: Joi.date().iso().allow(null).default(DateTime.local(2019, 11, 1)),
    start_date: Joi.date().iso().allow(null).default(DateTime.local(2019, 11, 30)),
    },
    }), wrap(async (req, res) =>
    // references to end_date and start_date within req.body were dates before. Now they are strings.
    // this is after upgrading from express-validation 1.0.2 to 3.0.2 and joi 14.3.1 to @hapi/joi 17.1.1
    // how to access the mutated body object now.
    }));
    Do we need to upgrade our workflow and call validation differently in order to get access to the values being coerced within @hapi/joi?
    sikorsky555
    @sikorsky555
    I do believe it would be best to not count a library to mutate data in a function for us instead of returning the mutated objects. Is this the expectation with the transition from joi to @hapis/joi?
    A
    @ybitso
    i got a post route that calls one function that upserts doc to mongo
    i have a job that runs once a day that send up to 80 requests with about 1000 elems in an array in each request
    is there a way I can queue the jobs on HAPI - or should i do it on the client side (send request one-by-one)
    Speed is not important
    As it now, i tend to get alot of socket time outs after the first few
    Orlando Quero
    @orlaqp
    Hi, I mam trying to use @hapi/joi with typescript. I already installed @types/hapi__joi but I am still getting a module not found issue when doing this: import * as J from 'hapi__joi'; any idea what am I doing wrong?
    this is the textual error: Module not found: Error: Can't resolve 'hapi__joi' in ..
    Orlando Quero
    @orlaqp
    I found my problem, in case somebody runs into the same issue this is how you solve it. You need to import it like this: import * as J from '@hapi/joi';
    Ghost
    @ghost~5ebbe298d73408ce4fe39bc2
    Hi!! Does anyone have use Supertest with Hapi?
    Ghost
    @ghost~5ebbe298d73408ce4fe39bc2
    Hello?
    Or anyone has some documentation about Continuous Integration Pipelines in Jenkins using Lab + Code for the testing?