Skip to content

Instantly share code, notes, and snippets.

View mariyappan88's full-sized avatar

Mariyappan Alagaiah mariyappan88

View GitHub Profile
@mariyappan88
mariyappan88 / server.js
Created November 27, 2017 12:19
Hi, Im using catbox redis....When i run getting Error UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Disconnected using Node js version 7
'use strict';
const Hapi = require('hapi');
const Catbox = require('catbox');
const catBoxRedis = require('catbox-redis');
const server = new Hapi.Server();
server.connection({ host: 'localhost', port: 3000 });
server.start((err) => {