Skip to content
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

GraphQL Requests not appearing in Postman Console #12855

Open
1 task done
ShaneDonaghy-catapult opened this issue May 9, 2024 · 9 comments
Open
1 task done

GraphQL Requests not appearing in Postman Console #12855

ShaneDonaghy-catapult opened this issue May 9, 2024 · 9 comments
Labels
product/api-client protocol/graphql Issues relating to the GraphQL protocol within Postman

Comments

@ShaneDonaghy-catapult
Copy link

Is there an existing issue for this?

  • I have searched the tracker for existing similar issues and I know that duplicates will be closed

Describe the Issue

Sent HTTP requests through postman appear in the console, as expected.
The new GraphQL request type will send the request fine, but it does not appear in the console.

Steps To Reproduce

  1. Create an HTTP collection
  2. Change Method to POST
  3. Paste https://rickandmortyapi.com/graphql in URL bar
  4. For Body, go to GraphQL section and paste:
query character($id: ID!) {
 character(id: $id) {
    id
       name
       status
       species
       type
       gender
       image
       created
 }
}

in Query section and:

{
	"id": "324"
}

in variables section.
5. Open Console
6. Send Request and Observe in Console
7. Create a new Blank Collection
8. In top right of Sidebar click 'New'
9. Choose GraphQL request type
10. Paste https://rickandmortyapi.com/graphql in url bar and wait for schema to load
11. Check customer box
12. Enter 324 in id filter box
13. Click 'Query'
14. Observe no line item printed to console

Screenshots or Videos

No response

Operating System

macOS

Postman Version

11.0.11

Postman Platform

Postman App

User Account Type

Signed In User

Additional Context?

No response

@ronork ronork added protocol/graphql Issues relating to the GraphQL protocol within Postman product/api-client labels May 10, 2024
@ronork
Copy link

ronork commented May 10, 2024

Hey @ShaneDonaghy-catapult , thank you for reporting the issue.
While we do support logging for HTTP, we're currently exploring options for integrating other protocols like GraphQL into the console. Could you provide more details on the specific information you're looking for in the console ?

@dcrockwell
Copy link

This is a major missing feature. There's no way to tell whether postman is writing the headers for auth correctly. If there's an auth error, there's no way to debug the request.

@ShaneDonaghy-catapult
Copy link
Author

Hey @ShaneDonaghy-catapult , thank you for reporting the issue. While we do support logging for HTTP, we're currently exploring options for integrating other protocols like GraphQL into the console. Could you provide more details on the specific information you're looking for in the console ?

Hey @ronork , I use Postman as a more user-friendly tool to get requests working before I port them to my test automation framework. For that to work I need to see auth headers, etc.,
What I'd be after ideally is feature parity with HTTP requests vis-a-vis the console.

@jkmartindale
Copy link

Lost a ton of productivity because of this

@larrysanbornthermo
Copy link

larrysanbornthermo commented Aug 16, 2024

@ronork - The postman console shows the transaction to get a new token for OAuth in a graphql collection but not the graphql query which is still just an HTTP POST. I agree, feature parity with 'send' functionality against rest api's is what's needed.

I use postman to build queries against existing API's then use those details to build automation (console app, powershell, what ever) same as @ShaneDonaghy-catapult

@GauthierPLM
Copy link

The console is generally very useful to ensure a request was properly configured (header missing, incorrect value in env, ...). I miss this with GraphQL as I have no way to ensure the headers or generated query had all variables correctly replaced.

@joamla96
Copy link

+1 currently trying to figure out whats going wrong with my request. Keep getting 401 errors, despite seemingly having configured it correctly.

Would be amazing to have an option to double check how and what headers is actually being sent.

@IainAdamsLabs
Copy link

Same camp here. Really unable to debug why its not working without the raw request being present in the console.

@powelli
Copy link

powelli commented Dec 20, 2024

Given GraphQL requests are still just HTTP (POST) requests with a JSON request/response body, curious if there's any particular reason for them being excluded (or not included) alongside other HTTP requests in the Postman Console?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
product/api-client protocol/graphql Issues relating to the GraphQL protocol within Postman
Projects
None yet
Development

No branches or pull requests

9 participants