-
Notifications
You must be signed in to change notification settings - Fork 48
All requests to proxy are http://[object Object]:undefined #16
Comments
Ran into the same thing with Node 6. |
Might won't work in all scenarios (e.g. if you use a custom agent), but this bit of monkey-patching on the global agent solved this issue for me for the time being. Obviously would be nice to have this fixed more formally: globalTunnel.initialize({ |
I can confirm this on node v6.7.0. |
One note on @jonoward's workaround solution: you may need to do the same for https.globalAgent if you make https calls |
Also confirmed on node v7.7.3 |
It's an issue with the tunnel dependency being out of date and not being compatible with more recent versions of Node. #17 fixes it, but it looks like the best option is to use the global-tunnel-ng fork since this module seems to be dead. |
I installed the global-tunnel npm module and initialized the proxy as instructed in the docs:
Requests are being routed to the proxy (Charles) just fine, however they all show up as
http://[object Object]:undefined
and are obviously failing.The text was updated successfully, but these errors were encountered: