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

Error: TypeError: Cannot read property 'remoteAddress' of undefined #66

Open
wernight opened this issue Oct 1, 2016 · 5 comments
Open

Comments

@wernight
Copy link

wernight commented Oct 1, 2016

Seems this error is appearing when running on Alpine Linux but on Debian it works. Here is the Dockerfile to reproduce:

FROM alpine:3.4
RUN apk add --no-cache ca-certificates nodejs && npm install -g spdyproxy
EXPOSE 44300
CMD ["spdyproxy", "--key", "/mnt/tls.key", "--cert", "/mnt/tls.crt"]

Then build and run it:

$ docker build -t spdyproxy .
$ docker run --rm -it -p 44300:44300 -v /path/to/tls:/mnt:ro spdyproxy

Then the log shows an error during usage:

Error: TypeError: Cannot read property 'remoteAddress' of undefined
@wernight
Copy link
Author

wernight commented Oct 1, 2016

The same based on Debian works (using the same key).

@wernight
Copy link
Author

wernight commented Oct 1, 2016

As a small note I also a notice:

(node:1) DeprecationWarning: process.EventEmitter is deprecated. Use require('events') instead.

@wernight
Copy link
Author

wernight commented Oct 4, 2016

Same issue on node:6-slim:

(node:5) DeprecationWarning: process.EventEmitter is deprecated. Use require('events') instead.
Error: TypeError: Cannot read property 'remoteAddress' of undefined

wernight added a commit to wernight/docker-spdyproxy that referenced this issue Oct 4, 2016
Due to bug [#66](igrigorik/node-spdyproxy#66)
we need to use another base image.
wernight added a commit to wernight/docker-spdyproxy that referenced this issue Oct 4, 2016
Due to bug [#66](igrigorik/node-spdyproxy#66)
we need to use another base image.
wernight added a commit to wernight/docker-spdyproxy that referenced this issue Oct 4, 2016
Due to bug [#66](igrigorik/node-spdyproxy#66)
we need to use another base image.

Image size: 210 MB -> 370 MB
wernight added a commit to wernight/docker-spdyproxy that referenced this issue Oct 4, 2016
Due to bug [#66](igrigorik/node-spdyproxy#66)
we need to use another base image.

Node.js 0.10 works, version 0.12 or 4 or 6 don't.

Image size: 210 MB -> 190 MB
@wernight
Copy link
Author

wernight commented Oct 4, 2016

Found that node.js 0.10 is that last one working.

@luckypoem
Copy link

yes,i also encounter the same issue.after i use node 0.10.0,it's ok again.

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