node-spdyproxy icon indicating copy to clipboard operation
node-spdyproxy copied to clipboard

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

Open wernight opened this issue 8 years ago • 5 comments

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 avatar Oct 01 '16 18:10 wernight

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

wernight avatar Oct 01 '16 18:10 wernight

As a small note I also a notice:

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

wernight avatar Oct 01 '16 19:10 wernight

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 avatar Oct 04 '16 07:10 wernight

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

wernight avatar Oct 04 '16 08:10 wernight

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

luckypoem avatar Aug 06 '17 05:08 luckypoem