dwyl / dwyl/hapi-socketio-redis-chat-example

Error. Can't run example.

Open
#104 3 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
Elm
Stars
360
Forks
72
PR merge metrics
No merged PRs in 30d

Description

I just cloned this repo, and after installing the packages and running the server, I get this error:
```
> hapi-socketio-redis-chat-example@5.0.0 start /Users/rambrogi/Projects/redis/hapi-socketio-redis-chat-example
> node ./server.js

/Users/rambrogi/Projects/redis/hapi-socketio-redis-chat-example/node_modules/hoek/lib/index.js:736
throw new Error(msgs.join(' ') || 'Unknown error');
^

Error: Invalid connection options {
"compression": true,
"router": {
"isCaseSensitive": true,
"stripTrailingSlash": false
},
"routes": {
"cache": {
"statuses": [
200,
204
],
"otherwise": "no-cache"
},
"compression": {},
"cors": false,
"files": {
"relativeTo": "."
},
"json": {
"replacer": null,
"space": null,
"suffix": null
},
"log": false,
"payload": {
"failAction": "error",
"maxBytes": 1048576,
"output": "data",
"parse": true,
"timeout": 10000,
"uploads": "/var/folders/9v/mfl4sy3n4tlcc0j1shrt2yww0000gn/T",
"defaultContentType": "application/json",
"compression": {}
},
"response": {
"ranges": true,
"emptyStatusCode": 200,
"options": {}
},
"security": null,
"state": {
"parse": true,
"failAction": "error"
},
"timeout": {
"server": false
},
"validate": {
"options": {}
}
},
"host": "0.0.0.0",
"port" [1, 2, 3]: NaN
}

[1] "port" must be a number
[2] "port" must be a string
[3] "port" must be a string
at Object.exports.assert (/Users/rambrogi/Projects/redis/hapi-socketio-redis-chat-example/node_modules/hoek/lib/index.js:736:11)
at Object.exports.apply (/Users/rambrogi/Projects/redis/hapi-socketio-redis-chat-example/node_modules/hapi/lib/schema.js:17:10)
at concat.forEach (/Users/rambrogi/Projects/redis/hapi-socketio-redis-chat-example/node_modules/hapi/lib/server.js:163:27)
at Array.forEach (native)
at module.exports.internals.Server.internals.Server.connection (/Users/rambrogi/Projects/redis/hapi-socketio-redis-chat-example/node_modules/hapi/lib/server.js:157:24)
at Object. (/Users/rambrogi/Projects/redis/hapi-socketio-redis-chat-example/server.js:4:8)
at Module._compile (module.js:569:30)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:503:32)
at tryModuleLoad (module.js:466:12)
```
Did I missed something? redis-server is also running.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.