bug: modify response/request rule does not work in GET GraphQL requests
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- graphql, typescript
Research direction
Start with the rule parser in the extension and desktop app, then inspect app/src/components/mode-specific/desktop/InterceptTraffic/WebTraffic/TrafficExporter/harLogs/utils.ts, especially how GET queryParams are represented. Reproduce the GraphQL GET request from the issue and trace the matcher for operationName and query parameters. Done means matching response/request rules apply to GraphQL GET requests in both tools.
Written by the indexing model from the issue text.
Description
Describe your issue?
-
The rule parser in both extension and desktop app only match GQL operationName in request body and not from queryParams in case of GET request
-
The network traffic table in both extension and desktop app do parse queryParams as well but the actual rule matcher does not. requestDetails.requestData is undefined in case of GET requests. Refer here
-
GQL requests like https://www.producthunt.com/frontend/graphql?operationName=HeaderDesktopProductsNavigationQuery&variables=%7B%7D&extensions=%7B%22persistedQuery%22%3A%7B%22version%22%3A1%2C%22sha256Hash%22%3A%22b837580ad37ccb60cafa1e4dca02cedfcb1d60dd6742323032ee0f64204fc579%22%7D%7D are not matched by graphql filter
Repro steps
Try to create a GraphQL response/request rule to apply on a GET request where operationName and query is passed through query params. Check rule wont be applied.
What Requestly tool were you using?
- Extension
- Desktop-App
- Android SDK
- Selenium
Your Environment
Chrome 142
Requestly Version
25.9.24
Error screenshot
No response
- Dominant language
- TypeScript
- Stars
- 87
- Forks
- 23
- Avg merge
- 14h
- Merged PRs (30d)
- 3
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from requestly/interceptor
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
requestly/interceptor#121 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
requestly/interceptor#26 · 1 comment ·
-
migration:misfiled-interceptor
Difficulty 5/5 Over a week Newbie friendliness 38/100
requestly/interceptor#27 · 2 comments ·
-
migration:misfiled-interceptor
Difficulty 3/5 1-2 days Newbie friendliness 45/100
requestly/interceptor#28 · 1 comment ·
-
migration:misfiled-interceptor type:bug
requestly/interceptor#29 · 2 comments · 1 assignee ·
All issues in requestly/interceptor
Similar issues
-
Type/Bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
OpenNSW/nsw-srilanka#497 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
0xMiden/bridge-portal#132 ·
-
react-doctor severity:warning tech-debt
Difficulty 1/5 Under an hour Newbie friendliness 88/100
digidem/comapeo-cloud-app#403 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100