bruno icon indicating copy to clipboard operation
bruno copied to clipboard

GraphQL load from introspection throwing UnAuthorised error

Open brvaland opened this issue 8 months ago • 0 comments

Hello,

I am using Bruno Rest client for testing graphQL API and found schema option - "Load from introspection" does not work for my graphQL API as getting unauthorised error message.

Our GraphQL API requires few auth related request headers such as api-key, x-secret-id and Authorization bearer token. I tried to debug with Charles Proxy and found Bruno is pass below request headers with placeholder values.

  • api-key: xxx11-xx12
  • x-secret-id: {{secreted}}
  • Authorization: {{token}}

The api-key request header value is correctly sent but x-secret-id and Authorization is not send. The api-key is environment variable but secret id and authorisation is global variable set from previous request using bru.setGlobalEnvVar

Please let me know if I am missing anything or there is any workaround.

brvaland avatar Apr 24 '25 21:04 brvaland