Hapi Questions
Ad
Cannot use namespace 'Boom' as a type
I am using hapi for one of my node+typescript project. i am trying to update hapi to the new @hapi/hapi
Socket.io/Hapi Not Working Azure App Service (Linux)
I recently made a switch in our test environment from an azure app services windows to linux. everything is working as it was previously except
Returning multiple errors in Joi
I'm trying to return multiple custom error messages from my joi validation schema. here is the schema const joi =
PDS2 Stripe Success Webhook and other issues
This is in danger of being tldr - so my question is: on successful payment - stripes sends a "success" payload to my success webhook. looking
IOS Real time updates won't trigger if app is in background state
I set up websocket support in my hapi server using nes tried it on android and so far the realtime updates is still working even in
Get Hapi to Register @Hapi/Good Plugin Only Once
Hapi (v17 & 18) states that i can specify an option on server.register to make the plugin on get initialized once, regardless of
Spawn and kill node.js child processes in different routes hapi.js
I have hapi.js server with two routes. one of it should spawn some child process, and the other one should kill it. var somefunc =
data: null in hapi.js preResponse, if Error was thrown
I'm throwing and error like this somewhere in mode code: throw new error({ name:
Unable to save uploaded image to database in Hapi.js
I want to save the uploaded photo in mongodb using hapi.js. but i can upload the photo in the uploads folder but i haven't been able to save that
React routing with Hapi
I have a requirement of using hapi with create-react-app where hapi acts as a proxy for api requests and also serves the react
Ad
Adding CSS on hapi.js is not woking
Using inert plugin i tried to add the public folder where i kept my css, js files. but on my views folder i
How to close download stream on cancel in REST API made with HAPI
I have implemented an rest api with hapi which provides an csv download from an database. when i start the download with an wget
Another way to read a JSON File in NodeJS
I reading a local json as require and exporting the reading function var saborserviciojson =
How do I make a Hapi plugin work only with a specific domain or subdomain?
I have the following inside my hapijs project: api plugin frontend plugin then i have a server folder which houses my main
onPostHandler extension not called when an error is thrown in the handler
I'm upgrading from hapi14 to hapi17, when throwing or returning an error inside a handler onposthandlers are not called, this isn't listed as a
Receiving cURL error : Empty reply from server
I wondered about this as i'm calling one of node js api using curl from the php script, i did console.log() on the server and it
How to fix TypeScript error Property 'isBoom' does not exist on type 'Boom<any> | ResponseObject'
The following source code returns typescript errors: this.hapi.ext({ type: 'onpreresponse', method: async (request, handler)
how to get the file via stream
I have my file/image stored over the azure storage but i need to send the file via stream (not to download the file in the local)
Hapi 17: Perform an action after response has been sent
I'm upgrading a service to hapi 17 and i've come across an issue that i don't know how to port to the new hapi. my handler method used to
Simple graphql schema throwing syntax error, also unable to trace the issue line from logs
I am trying to create a graphql implementation in my node project. i have created a schema and resolver in separate js and i am calling them from
How to call Hapi plugin function from another
In hapi (v17 if it makes any difference), what is the correct way to call a function in a plugin from another ? let's say i've started
Ad
in Hapi I get h.file is not a function
Im running the latest version of hapi but when i try to server static files i get the error h.file is not a function. i have inert installed.
Joi validate optional array from dynamically added fields
I have a form where the user can add more authors, the first one is required and is it has a its own fields validation when the user add
How to integrate oauth for react front end and node back end?
I am using react as front end. and i used react-google-login and react-facebook-login for login with google and
JOI validation is not returning all the errors despite setting abort early false
I've been trying to validate my payload via joi schema. but it's not returning the error what i've written in schema rather it's showing only one
hapi.js connected with mysql is not showing the value's on browser
I was trying to get the list of some datas from mysql using hapi.js. but i'm getting this error error: method did not return a
SSL CA certificate details in hapi-mongodb
Can't we have ssl certificate, keyfile, passphrase details specified in mongo uri? for example:
Multiple values from array in query with hapijs
I want to have valid query like that countries=fr,be i tried this: countries:
How to stream JSON request in Hapijs?
I have a really big json request, which is causing 413 error. i was exploring what could be the workaround to solve this issue(other than
Request handler unable to render view with Vision plugin
I'm working on a hapijs api and i've defined a plugin that registers the vision plugin and configures a rendering engine (ejs). but when i try and
Hapijs throws 'cannot throw non-error object error' when returning data from level db in Node
I have been struggling figuring this out: trying to: return data from leveldb on a get request in hapijs. but getting:
Hapi.js user authentication with mongodb issue
For, an user verification now i hardcoded the username and password directly on my code. but i want this dynamically using database username and
Ad
fetch body not showing up in the request payload in Hapi
I've got a nodejs api server running hapi. to test i've got a simple html page with some javascript that is using fetch to hit the api for some
How to get the original input using Joi.raw()
I'm trying to validate some input with
A Joi schema to validate multiple dynamic key objects
Joi v14.3.1 there is an object: const obj = { actions: { dynamic_key_0: { email: {
Stripe verify web-hook signature HMAC sha254 HAPI.js
I'm trying to verify a webhook sent by stripe in my hapi.js app. i've followed the instructions detailed here:
HapiJs routes access base on role
I am using the hapijs at server side and want to do route configuration base on role, i want to restrict user to access some end points
React Router serverside rendering errors: Warning: Failed propType: Required prop `history` was not specified in `RoutingContext`
I'm setting up a simple toy app to learn react/hapi and everything is working well till i try and set up serverside routing. the server runs
Inconsistent Hapi.js Lab test results
I am trying to test a hapi.js plugin with registration function: exports.register = function(server, options, next) {
Hapi server on heroku fails to bind port
I'm working on a hapi server for a reactjs app but when i try to deploy to heroku, i get the r10 error "failed to bind to $port within 60 seconds
React Router / Hapi Server Side Rendering Error
I've been struggling this for a while, and previously had this working, but inexplicably, it's broken again, so clearly the root cause has not been resolved. react
Ad
Blog Categories
Ad