How to correctly trace all outboud Node.js request on server apps with Express

1 Answer 13 Views
Fiddler Classic Windows
Viacheslav
Top achievements
Rank 1
Viacheslav asked on 30 Apr 2024, 08:08 AM | edited on 30 Apr 2024, 08:09 AM

I try many library, last library I try was global-tunnel-ng, but still have no result. Usually I use fiddler to trace various request, my Fiddler listen port 8888, therefore I try to use

 

  var globalTunnel = require('global-tunnel-ng');
  globalTunnel.initialize({
    host: 'ipv4.fiddler',
    port: 8888,
  });

  // my various request to Google, to AWS and more

  globalTunnel.end()

I expected to see all request on Fiddler, but there are nothing any request on Fiddler panel. 'localhost' and '127.0.0.1' as ProxyURL also don't working. What I doing wrong?

 

1 Answer, 1 is accepted

Sort by
0
Nick Iliev
Telerik team
answered on 30 Apr 2024, 09:37 AM

Hello Viacheslav,

 

There are few things to consider:

1. Not all localhost traffic is automatically captured by Fiddler Classic. You can try using the solutions described here:

https://docs.telerik.com/fiddler/observe-traffic/troubleshooting/notraffictolocalhost 

2. Not all node.js libraries or CLI applications automatically respect the global environment variables. We have dedicated instructions provided for Fiddler Everywhere (a different product from Fiddler Classic), which will work on Fiddler Classic if you update the used port (which, by default, Is port 8888 for Classic and port 8866 for Fiddler Everywhere).

https://docs.telerik.com/fiddler-everywhere/knowledge-base/how-to-capture-nodejs-traffic 

https://docs.telerik.com/fiddler-everywhere/knowledge-base/capturing-aws-traffic 

I am unaware of the specific library global-tunnel-ng, but you should be able to capture requests from most Node.js libraries through the above instructions. 

As a side note, the Fiddler Everywhere application also has a dedicated terminal capturing mode, which enables you to start your application from a sandboxed and preconfigured proxy instance.

 

Regards,
Nick Iliev
Progress Telerik

A brand new ThemeBuilder course was just added to the Virtual Classroom. The training course was designed to help you get started with ThemeBuilder for styling Telerik and Kendo UI components for your applications. You can check it out at https://learn.telerik.com
Tags
Fiddler Classic Windows
Asked by
Viacheslav
Top achievements
Rank 1
Answers by
Nick Iliev
Telerik team
Share this question
or