node-spdyproxy
node-spdyproxy copied to clipboard
Error: TypeError: Cannot read property 'remoteAddress' of undefined
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
The same based on Debian works (using the same key).
As a small note I also a notice:
(node:1) DeprecationWarning: process.EventEmitter is deprecated. Use require('events') instead.
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
Found that node.js 0.10 is that last one working.
yes,i also encounter the same issue.after i use node 0.10.0,it's ok again.