[GH-ISSUE #1770] Map local no longer matches GraphQL queries #1764

Open
opened 2026-03-03 19:54:10 +03:00 by kerem · 7 comments
Owner

Originally created by @dwroth on GitHub (Sep 13, 2023).
Original GitHub issue: https://github.com/ProxymanApp/Proxyman/issues/1770

Originally assigned to: @NghiaTranUIT on GitHub.

Description

Map local rules that used to be working on previous versions of ProxyMan stopped working since I upgraded to version 4.11. Even when I right click and select Tools > Map Local to create a specific rule for that query, the override does not seem to be getting invoked. Furthermore, the "Edited" field in the traffic timeline is blank. This happens even if I set the URL to *. According to the "Test Rules" tool, this URL should match.

Steps to Reproduce

  1. Add a new map local rule based on a graphql query
  2. Query that endpoint
  3. Observe that the request/response it not intercepted

Current Behavior

Map local for GraphQL queries no longer seems to be matching routes that it used to match without issue.

Expected Behavior

My route should be matched and the response should be pulled from the mapped file.

Environment

  • App version: Proxyman 4.1.1
  • macOS version: Ventura 13.5.1 (22G90)
Originally created by @dwroth on GitHub (Sep 13, 2023). Original GitHub issue: https://github.com/ProxymanApp/Proxyman/issues/1770 Originally assigned to: @NghiaTranUIT on GitHub. ## Description Map local rules that used to be working on previous versions of ProxyMan stopped working since I upgraded to version 4.11. Even when I right click and select Tools > Map Local to create a specific rule for that query, the override does not seem to be getting invoked. Furthermore, the "Edited" field in the traffic timeline is blank. This happens even if I set the URL to `*`. According to the "Test Rules" tool, this URL should match. ## Steps to Reproduce 1. Add a new map local rule based on a graphql query 2. Query that endpoint 3. Observe that the request/response it not intercepted ## Current Behavior Map local for GraphQL queries no longer seems to be matching routes that it used to match without issue. ## Expected Behavior My route should be matched and the response should be pulled from the mapped file. ## Environment - App version: Proxyman 4.1.1 - macOS version: Ventura 13.5.1 (22G90)
Author
Owner

@NghiaTranUIT commented on GitHub (Sep 14, 2023):

@dwroth can you double check again? I've tested with the latest build 4.11.0 and it just works fine.

  1. Make a GraphQL request (In this case, I use https://www.producthunt.com/)
  2. Right-Click -> Tools -> Map Local -> Auto create a rule
  3. Change the body
  4. Resent the request again
  5. Requests are matched and change the body as expected.

CleanShot 2023-09-14 at 08 02 26@2x


I guess other tools, maybe Map Remote, Breakpoint, Scripting are enabled, and this Request doesn't match with Map Local because it's already matched with other tools.

Try to disable other tools and test again.

<!-- gh-comment-id:1718505206 --> @NghiaTranUIT commented on GitHub (Sep 14, 2023): @dwroth can you double check again? I've tested with the latest build 4.11.0 and it just works fine. 1. Make a GraphQL request (In this case, I use https://www.producthunt.com/) 2. Right-Click -> Tools -> Map Local -> Auto create a rule 3. Change the body 4. Resent the request again 5. Requests are matched and change the body as expected. ![CleanShot 2023-09-14 at 08 02 26@2x](https://github.com/ProxymanApp/Proxyman/assets/5878421/699c332b-ee2e-4247-8b24-f7bb69949d19) --------------- I guess other tools, maybe Map Remote, Breakpoint, Scripting are enabled, and this Request doesn't match with Map Local because it's already matched with other tools. Try to disable other tools and test again.
Author
Owner

@dwroth commented on GitHub (Sep 14, 2023):

Trying again today. It does appear to be working but the checkmark in the edited field ("Mapped" arrow item 3 in your screenshot) are not showing up. That said, the response is being correctly mutated.

<!-- gh-comment-id:1719984930 --> @dwroth commented on GitHub (Sep 14, 2023): Trying again today. It does appear to be working but the checkmark in the edited field ("Mapped" arrow item 3 in your screenshot) are not showing up. That said, the response is being correctly mutated.
Author
Owner

@dwroth commented on GitHub (Sep 28, 2023):

@NghiaTranUIT following up as I believe I figured out what's going on here. I run proxyman from behind a VPN. When I do this, I can still view the traffic with Atlantis, but map local does not appear to work. Once I refresh my VPN connection, I see traffic outside of atlantis and map local works again. I'm not sure if this is a legitimate bug or just an expectation that needs to be set better. I hope this helps.

<!-- gh-comment-id:1740026776 --> @dwroth commented on GitHub (Sep 28, 2023): @NghiaTranUIT following up as I believe I figured out what's going on here. I run proxyman from behind a VPN. When I do this, I can still view the traffic with Atlantis, but map local does not appear to work. Once I refresh my VPN connection, I see traffic outside of atlantis and map local works again. I'm not sure if this is a legitimate bug or just an expectation that needs to be set better. I hope this helps.
Author
Owner

@NghiaTranUIT commented on GitHub (Sep 29, 2023):

It works as intended @dwroth.

  • Map Local or Breakpoint tool doesn't work with Atlantis. It's designed for Request/Response preview purposes.
  • Map Local or Breakpoint only works with normal Proxy.
<!-- gh-comment-id:1740146207 --> @NghiaTranUIT commented on GitHub (Sep 29, 2023): It works as intended @dwroth. - Map Local or Breakpoint tool doesn't work with Atlantis. It's designed for Request/Response preview purposes. - Map Local or Breakpoint only works with normal Proxy.
Author
Owner

@dwroth commented on GitHub (Sep 29, 2023):

Got it. That was unclear. If I may offer a suggestion: in that case it might be helpful to show something in the edited field to indicate that the path matched a map rule, but that no mapping took place. A ⚠️ or something would be helpful.

<!-- gh-comment-id:1740210442 --> @dwroth commented on GitHub (Sep 29, 2023): Got it. That was unclear. If I may offer a suggestion: in that case it might be helpful to show something in the edited field to indicate that the path matched a map rule, but that no mapping took place. A ⚠️ or something would be helpful.
Author
Owner

@NghiaTranUIT commented on GitHub (Sep 29, 2023):

Yes, I think so, let me see where I can improve it 👍

<!-- gh-comment-id:1740218560 --> @NghiaTranUIT commented on GitHub (Sep 29, 2023): Yes, I think so, let me see where I can improve it 👍
Author
Owner

@dwroth commented on GitHub (Sep 29, 2023):

Awesome. Thank you!

<!-- gh-comment-id:1740228489 --> @dwroth commented on GitHub (Sep 29, 2023): Awesome. Thank you!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Proxyman#1764
No description provided.