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

Cannot read property 'port' of null #101

Open
joaomilho opened this issue Aug 26, 2017 · 1 comment
Open

Cannot read property 'port' of null #101

joaomilho opened this issue Aug 26, 2017 · 1 comment

Comments

@joaomilho
Copy link

This happens sometimes when running proxy.close():

/Users/joaomilho/p/klarna-app/services/shopping/node_modules/hoxy/lib/proxy.js:396
            port: addr.port,
                      ^

TypeError: Cannot read property 'port' of null
    at Server.<anonymous> (/Users/joaomilho/p/klarna-app/services/shopping/node_modules/hoxy/lib/proxy.js:396:23)
    at emitTwo (events.js:106:13)
    at Server.emit (events.js:194:7)
    at parserOnIncoming (_http_server.js:563:12)
    at HTTPParser.parserOnHeadersComplete (_http_common.js:99:23)

On mac, node v 7.10.1.

@Safi1012
Copy link

Safi1012 commented Sep 8, 2017

Hi,

I'm also having the same problem. This problem happens for me when Hoxy is receiving requests and tries to shut down at the same time. Unfortunately I can't find a way to tell Hoxy, to stop listening on incoming network calls.

Any help would be much appreciated, thanks!

Node: v7.9.0
macOS (Sierra): 10.12.6

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