ProxymanApp / ProxymanApp/Proxyman

Proxyman not capturing traffic on NextJS Edge runtime (middleware)

Open
#2,114 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

✅ Done bug
Dominant language
No language data
Stars
7k
Forks
237
PR merge metrics
No merged PRs in 30d

Description

Description

Proxyman is not capturing traffic on the edge runtime. But normal requests under the route handlers, and server components show up on proxyman.

Steps to Reproduce

  1. Clone https://github.com/Mahdhir/next-proxyman-issue
  2. Setup using manual/automatic mode and run the app and see the requests to jsonplaceholder.typicode show up on proxyman
  3. Modify the middleware.ts file by commenting the route handler fetch and uncomment the fetch call directly to the jsonplaceholder endpoint
  4. If you run the app now, you will notice the requests do not show up on proxyman

Current Behavior

Proxyman is not capturing traffic on the edge runtime next js middleware.

Expected Behavior

Proxyman should capture all traffic including next js middleware edge runtime.

Environment

Proxyman Version 5.7.0 (50700) | macOS: Version 14.6.1 (Build 23G93)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the reproduction repository at https://github.com/Mahdhir/next-proxyman-issue and its middleware.ts file. Run the app in manual or automatic mode, compare the route-handler fetch with the direct jsonplaceholder fetch in middleware, and verify that traffic from the Next.js Edge middleware is captured by Proxyman.

Written by the indexing model from the issue text.

Assessment

Tech stack
macos, next.js
Domain
devtools, networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.