NodeJs

Getting Started
Installation
Setup
Inspect Traffic
HTTP Rules (Modify Traffic)
Session Book
Mock Server
API Client
File Server
Workspace
Public API
Guides
TroubleShooting
Subscription & Billing
Getting Started
Installation
Setup
Inspect Traffic
API Client
HTTP Rules (Modify Traffic)
Mock Server
File Server
Workspace
Public API
Guides
Session Book
Subscription & Billing
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.