Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Caught exception: TypeError: Cannot read property 'headers' of undefined #1

Open
BANG88 opened this issue Apr 22, 2014 · 9 comments
Open

Comments

@BANG88
Copy link

BANG88 commented Apr 22, 2014

When I run this cmd:
pomelo-daemon >start all 😢

[2014-04-22 10:07:30.663] [ERROR] pomelo-daemon - [/usr/lib/node_modules/pomelo-daemon/lib/server/server.js]  Caught exception: TypeError: Cannot read property 'headers' of undefined

How to fix this problem ? 🐻

@fantasyni
Copy link
Member

express version ?

@BANG88
Copy link
Author

BANG88 commented Apr 22, 2014

the default version

@fantasyni
Copy link
Member

express 3.3.5 can be fine, 4.x may have some problems
npm list to see it

@BANG88
Copy link
Author

BANG88 commented Apr 22, 2014

daemon

pomelo-daemon@0.0.5 /usr/lib/node_modules/pomelo-daemon
├── tail@0.3.1
├── async@0.7.0
├── event-stream@3.0.16 (pause-stream@0.0.10, from@0.1.3, duplexer@0.0.4, map-stream@0.0.2, split@0.2.10, through@2.3.4, stream-combiner@0.0.0)
├── optimist@0.6.1 (wordwrap@0.0.2, minimist@0.0.8)
├── request@2.34.0 (json-stringify-safe@5.0.0, forever-agent@0.5.2, aws-sign2@0.5.0, qs@0.6.6, tunnel-agent@0.3.0, oauth-sign@0.3.0, node-uuid@1.4.1, mime@1.2.11, form-data@0.1.2, tough-cookie@0.12.1, http-signature@0.10.0)
├── hawk@1.0.0 (cryptiles@0.2.2, sntp@0.2.4, boom@0.4.2, hoek@0.9.1)
├── pomelo-schedule@0.3.6 (log4js@0.6.14)
├── pomelo-logger@0.1.2 (log4js@0.6.7)
├── cliff@0.1.8 (eyes@0.1.8, colors@0.6.2, winston@0.6.2)
├── express@3.3.8 (methods@0.0.1, debug@0.8.0, cookie-signature@1.0.1, range-parser@0.0.4, fresh@0.2.0, buffer-crc32@0.2.1, cookie@0.1.0, mkdirp@0.3.5, send@0.1.4, commander@1.2.0, connect@2.8.8)
└── mongodb@1.3.12 (kerberos@0.0.3, bson@0.2.1)

game-server

bang@ubuntu:~/Desktop/HelloWorld/game-server$ npm list
HelloWorld@0.0.1 /home/bang/Desktop/HelloWorld/game-server
└─┬ pomelo@0.9.6
  ├── async@0.2.5
  ├─┬ cliff@0.1.8
  │ ├── colors@0.6.2
  │ ├── eyes@0.1.8
  │ └─┬ winston@0.6.2
  │   ├── async@0.1.22
  │   ├── cycle@1.0.3
  │   ├── pkginfo@0.2.3
  │   ├── request@2.9.203
  │   └── stack-trace@0.0.9
  ├── commander@2.0.0
  ├── crc@0.2.0
  ├── mkdirp@0.3.3
  ├── node-bignumber@1.2.1
  ├─┬ pomelo-admin@0.3.3
  │ ├── ndump@0.0.2
  │ └─┬ socket.io-client@0.9.16
  │   ├─┬ active-x-obfuscator@0.0.1
  │   │ └── zeparser@0.0.5
  │   ├── uglify-js@1.2.5
  │   └── xmlhttprequest@1.4.2
  ├── pomelo-loader@0.0.6
  ├─┬ pomelo-logger@0.1.2
  │ └─┬ log4js@0.6.7
  │   ├── async@0.1.15
  │   ├── dequeue@1.0.3
  │   ├─┬ readable-stream@1.0.27-1
  │   │ ├── core-util-is@1.0.1
  │   │ ├── inherits@2.0.1
  │   │ ├── isarray@0.0.1
  │   │ └── string_decoder@0.10.25-1
  │   └── semver@1.1.4
  ├── pomelo-monitor@0.3.7
  ├── pomelo-protobuf@0.4.0
  ├── pomelo-protocol@0.1.3
  ├─┬ pomelo-rpc@0.3.2
  │ ├── node-uuid@1.4.0
  │ ├── pomelo-loader@0.0.5
  │ ├─┬ socket.io-client@0.9.16
  │ │ ├─┬ active-x-obfuscator@0.0.1
  │ │ │ └── zeparser@0.0.5
  │ │ ├── uglify-js@1.2.5
  │ │ └── xmlhttprequest@1.4.2
  │ ├── stream-pkg@0.0.5
  │ └─┬ toobusy@0.2.2
  │   └── bindings@1.0.0
  ├─┬ pomelo-scheduler@0.3.8
  │ └─┬ log4js@0.6.13
  │   ├── async@0.1.15
  │   ├─┬ readable-stream@1.0.27-1
  │   │ ├── core-util-is@1.0.1
  │   │ ├── inherits@2.0.1
  │   │ ├── isarray@0.0.1
  │   │ └── string_decoder@0.10.25
  │   └── semver@1.1.4
  ├── seq-queue@0.0.5
  ├─┬ socket.io@0.9.16
  │ ├── base64id@0.1.0
  │ ├── policyfile@0.0.4
  │ ├── redis@0.7.3
  │ └─┬ socket.io-client@0.9.16
  │   ├─┬ active-x-obfuscator@0.0.1
  │   │ └── zeparser@0.0.5
  │   ├── uglify-js@1.2.5
  │   ├─┬ ws@0.4.31
  │   │ ├── commander@0.6.1
  │   │ ├── nan@0.3.2
  │   │ ├── options@0.0.5
  │   │ └── tinycolor@0.0.1
  │   └── xmlhttprequest@1.4.2
  ├─┬ toobusy@0.2.4
  │ └── bindings@1.1.0
  └─┬ ws@0.4.25
    ├── commander@0.6.1
    ├── options@0.0.5
    └── tinycolor@0.0.1

web-server

HelloWorld@0.0.1 /home/bang/Desktop/HelloWorld/web-server
└─┬ express@2.5.2
  ├─┬ connect@1.8.7
  │ └── formidable@1.0.14
  ├── mime@1.2.11
  ├── mkdirp@0.0.7
  └── qs@0.6.6

@fantasyni
Copy link
Member

try npm install -g pomelo-daemon again ?

@BANG88
Copy link
Author

BANG88 commented Apr 22, 2014

same error, after reinstall 🐒

@fantasyni
Copy link
Member

are sure you put daemon.json in the right dir

@fantasyni
Copy link
Member

check this

@BANG88
Copy link
Author

BANG88 commented Apr 22, 2014

👌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants