-
-
Notifications
You must be signed in to change notification settings - Fork 477
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Include GraphQL operation name in the unhandled request warning #2161
Comments
Hi, @vldslv-a. Thanks for letting us know. We've removed the parsing of requests from the I am a bit hesitant to add the parsing back, even if behind an option (not a fan of configurations in general). Would it be more helpful if we instead printed a stringified request body in the message? [MSW] Error: intercepted a request without a matching request handler:
• POST https://app/graphql
{"query":"query GetUser { ... }","variales":{...}} Reading the request body is not as expensive and will include the GraphQL request information to help you identify the unhandled request. Let me know! |
Yes, that would be nice! It would at least give us more information about unhandled requests, because sometimes they are hard to find. |
@vldslv-a, if you are interested, you can open a pull request with this change! I will help you review the code and merge it for everyone to use. |
Scope
Adds a new behavior
Compatibility
Feature description
Hello! Previously, in unhandled graphql request errors, you could see the operationName of the query, but at the moment this is not possible. Could you provide an example or a function that would fix this?
The text was updated successfully, but these errors were encountered: