hapijs / glue

Server composer for hapi.js
Other
245 stars 62 forks source link

setting cache option throws error "cannot read property of _hoekOnce of undefined" #106

Closed saurabhghewari closed 6 years ago

saurabhghewari commented 6 years ago
const manifest = {
      server : {
           cache : 'catbox-redis',
    port : 8000,
    compression : { minBytes : 1024 },
    debug: { request : ['*'] },
    host : '0.0.0.0',
    load : {
        sampleInterval : 1000
    },
      }
}

The "cache" key is throwing error while starting the server

Error is "TypeError: Cannot read property '_hoekOnce' of undefined".

Removing cache from the manifest everything works fine.

Hapi- 17.0.1 Glue:- 5.0.0 Catbox:- 3.1.1 (catbox-redis).

Is there something am I missing in Manifest.

WesTyler commented 6 years ago

Looks like catbox-redis has not been updated to support hapi 17 yet. You can track that issue here.

saurabhghewari commented 6 years ago

Ohh. Thank you for the info.

LoicMahieu commented 6 years ago

catbox-redis@4.0.0 released with hapi 17 support! Thanks to @EgoAleSum @Marsup

lock[bot] commented 4 years ago

This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.