hoxy icon indicating copy to clipboard operation
hoxy copied to clipboard

Cannot read property 'port' of null

Open joaomilho opened this issue 7 years ago • 1 comments

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.

joaomilho avatar Aug 26 '17 18:08 joaomilho

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

Safi1012 avatar Sep 08 '17 11:09 Safi1012