NodeJs

Category
Setup
API Client
FAQ
File Server
Getting Started
Guides
HTTP Rules (Modify Traffic)
Inspect Traffic
Installation
Mock Server
New Section
Public API
Sessions Replay
Setup
TroubleShooting
Workspace
Getting Started
Installation
Setup
Inspect Traffic
API Client
HTTP Rules (Modify Traffic)
Mock Server
File Server
Workspace
Public API
Sessions Replay
FAQ
Guides
New Section
TroubleShooting
ย 

NodeJS

You can intercept and modify network traffic from any terminal instance.

Steps

  1. Click onย Connect appsย button and a popup modal will open. Underย Terminal processesย section, click onย Setup instructionย for Terminal.
  1. Copy the command shown and paste it in terminal where you will start your NodeJs server from.
    1. . <(curl -sS localhost:7040/tpsetup)
      Note: This command might different depending upon port availability. Checkout in Connected Apps > Terminal
      notion image
  1. If the command succeeds, you should seeย Requestly interceptionย enabled in your terminal.
  1. Now all you requests from you NodeJS server should show up in theย Network Trafficย Tab.
ย 
โš ๏ธ
โš ๏ธ CAUTION
https requests in axios might not show up properly in Network Traffic tab due to the way axios handles HTTPS requests. But the actual request will work properly in your code as expected.
Checkoutย Github Issueย for more explanation and quick hack on how to apply rules on these requests.
ย