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

Introspection query trace not available after it fails #5776

Open
1 task done
NJAldwin opened this issue Feb 13, 2023 · 1 comment
Open
1 task done

Introspection query trace not available after it fails #5776

NJAldwin opened this issue Feb 13, 2023 · 1 comment
Labels
A-graphql Area: GraphQL Protocol C-improvement Category: Improvement / Enhancement E-good-first-issue Experience required: Beginner / New S-unverified Status: Unverified by maintainer

Comments

@NJAldwin
Copy link

Expected Behavior

  1. Set up a GQL query using Bearer Auth -- and verify the query works OK
  2. Expect Insomnia to be able to fetch the schema
  3. OR if Insomnia is unable to fetch the schema, expect that I can examine the trace/timeline of the introspection query to investigate why it failed

Actual Behavior

  1. The introspection query fails with a 400
  2. The trace/timeline for the introspection query is unavailable

Per #970 I would expect to be able to investigate the timeline for the query (to figure out why it's 400'ing in my case, despite the actual query working fine), but I don't see any way to do so:

Cursor_and_Insomnia

Reproduction Steps

  1. Set up a GQL query using Bearer Auth
  2. Either have automatic schema fetch enabled or manually fetch the schema

Is there an existing issue for this?

Additional Information

I have a hunch for why this might be 400'ing on our GQL server, but without access to the query log for the introspection query, I'm having a hard time proving it. Other coworkers have seen the same behavior with Insomnia.

Insomnia Version

2022.7.0

What operating system are you using?

macOS

Operating System Version

macOS Monterey 12.5.1

Installation method

download from insomnia.rest

Last Known Working Insomnia version

No response

@NJAldwin NJAldwin added B-bug Bug: general classification S-unverified Status: Unverified by maintainer labels Feb 13, 2023
@NJAldwin
Copy link
Author

Some more info: if I open DevTools, I don't see anything in the network tab.

However, I do see an error in the console. Possibly something related to sentry?

<div aria-expanded="true" tabindex="-1" style="box-sizing: border-box; min-width: 0px; min-height: 0px; flex: 0 0 auto; color: rgb(189, 198, 207); font-family: menlo, monospace; font-size: 11px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(41, 50, 61); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"><span class="source-code" style="box-sizing: border-box; min-width: 0px; min-height: 0px; font-family: var(--source-code-font-family); white-space: pre-wrap; font-size: var(--source-code-font-size) !important; line-height: 1.2;"><span class="console-message-anchor" style="box-sizing: border-box; min-width: 0px; min-height: 0px; float: right; text-align: right; max-width: 100%; margin-left: 4px;"><span class="devtools-link" role="link" tabindex="-1" title="file:///Applications/Insomnia.app/Contents/Resources/app.asar/node_modules/@sentry/src/helpers.ts:98" style="box-sizing: border-box; min-width: 0px; min-height: 0px; color: var(--color-text-secondary); text-decoration: underline; cursor: pointer; word-break: break-all;"><br class="Apple-interchange-newline">helpers.ts:98</span> </span><span class="console-message-text" style="box-sizing: border-box; min-width: 0px; min-height: 0px; color: var(--override-error-text-color) !important;">15:13:44.214 › [graphql] Failed to fetch schema <span class="object-value-error source-code" style="box-sizing: border-box; min-width: 0px; min-height: 0px; font-family: var(--source-code-font-family); white-space: pre-wrap; font-size: var(--source-code-font-size) !important; line-height: 1.2;"><span style="box-sizing: border-box; min-width: 0px; min-height: 0px;">Error: Request failed with status code 400
<span style="box-sizing: border-box; min-width: 0px; min-height: 0px;">    at createError (<span class="devtools-link" role="link" tabindex="-1" title="/Applications/Insomnia.app/Contents/Resources/app.asar/node_modules/axios/lib/core/createError.js:16:15" style="box-sizing: border-box; min-width: 0px; min-height: 0px; color: var(--override-console-link-color); text-decoration: underline; cursor: pointer; word-break: break-all;">/Applications/Insomn<span class="devtools-link-ellipsis" style="box-sizing: border-box; min-width: 0px; min-height: 0px;">…</span>reateError.js:16:15</span>)
</span><span style="box-sizing: border-box; min-width: 0px; min-height: 0px;">    at settle (<span class="devtools-link" role="link" tabindex="-1" title="/Applications/Insomnia.app/Contents/Resources/app.asar/node_modules/axios/lib/core/settle.js:17:12" style="box-sizing: border-box; min-width: 0px; min-height: 0px; color: var(--override-console-link-color); text-decoration: underline; cursor: pointer; word-break: break-all;">/Applications/Insomn<span class="devtools-link-ellipsis" style="box-sizing: border-box; min-width: 0px; min-height: 0px;">…</span>ore/settle.js:17:12</span>)
</span><span style="box-sizing: border-box; min-width: 0px; min-height: 0px;">    at IncomingMessage.handleStreamEnd (<span class="devtools-link" role="link" tabindex="-1" title="/Applications/Insomnia.app/Contents/Resources/app.asar/node_modules/axios/lib/adapters/http.js:269:11" style="box-sizing: border-box; min-width: 0px; min-height: 0px; color: var(--override-console-link-color); text-decoration: underline; cursor: pointer; word-break: break-all;">/Applications/Insomn<span class="devtools-link-ellipsis" style="box-sizing: border-box; min-width: 0px; min-height: 0px;">…</span>ters/http.js:269:11</span>)
</span><span style="box-sizing: border-box; min-width: 0px; min-height: 0px;">    at IncomingMessage.emit (<span class="devtools-link" role="link" tabindex="-1" title="node:events:525:35" style="box-sizing: border-box; min-width: 0px; min-height: 0px; color: var(--override-console-link-color); text-decoration: underline; cursor: pointer; word-break: break-all;">node:events:525:35</span>)
</span><span style="box-sizing: border-box; min-width: 0px; min-height: 0px;">    at endReadableNT (<span class="devtools-link" role="link" tabindex="-1" title="node:internal/streams/readable:1358:12" style="box-sizing: border-box; min-width: 0px; min-height: 0px; color: var(--override-console-link-color); text-decoration: underline; cursor: pointer; word-break: break-all;">node:internal/streams/readable:1358:12</span>)
</span><span style="box-sizing: border-box; min-width: 0px; min-height: 0px;">    at process.processTicksAndRejections (<span class="devtools-link" role="link" tabindex="-1" title="node:internal/process/task_queues:83:21" style="box-sizing: border-box; min-width: 0px; min-height: 0px; color: var(--override-console-link-color); text-decoration: underline; cursor: pointer; word-break: break-all;">node:internal/process/task_queues:83:21</span>)</span></span></span></span></span></div><div class="" role="group" style="box-sizing: border-box; min-width: 0px; min-height: 0px; flex: 0 0 auto; color: rgb(189, 198, 207); font-family: menlo, monospace; font-size: 11px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(41, 50, 61); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"><span class="monospace" style="display: inline-block; --monospace-font-size:11px; --monospace-font-family:menlo,monospace; --source-code-font-size:11px; --source-code-font-family:menlo,monospace; box-sizing: border-box; min-width: 0px; min-height: 0px; font-family: var(--monospace-font-family); font-size: var(--monospace-font-size) !important;">

  | sentryWrapped | @ | helpers.ts:98
-- | -- | -- | --
  | setTimeout (async) |   |  
  | (anonymous) | @ | trycatch.ts:121
  | consoleLog | @ | /Applications/Insomn…ports/console.js:93
  | transport | @ | /Applications/Insomn…ports/console.js:46
  | runTransport | @ | /Applications/Insomn…n-log/src/log.js:44
  | runTransports | @ | /Applications/Insomn…n-log/src/log.js:27
  | log | @ | /Applications/Insomn…n-log/src/log.js:21
  | dn | @ | graph-ql-editor.tsx:142
  | processTicksAndRejections | @ | node:internal/process/task_queues:96
  | await in processTicksAndRejections (async) |   |  
  | onClick | @ | graph-ql-editor.tsx:459
  | onClick | @ | dropdown-item.tsx:66
  | sle | @ | react-dom.production.min.js:54
  | cle | @ | react-dom.production.min.js:54
  | ule | @ | react-dom.production.min.js:55
  | VL | @ | react-dom.production.min.js:105
  | C7 | @ | react-dom.production.min.js:106
  | (anonymous) | @ | react-dom.production.min.js:117
  | uD | @ | react-dom.production.min.js:274
  | XU | @ | react-dom.production.min.js:52
  | dk | @ | react-dom.production.min.js:109
  | BI | @ | react-dom.production.min.js:74
  | Tle | @ | react-dom.production.min.js:73
  | sentryWrapped | @ | helpers.ts:98

</span></div>

@filfreire filfreire added the A-graphql Area: GraphQL Protocol label Feb 14, 2023
@filfreire filfreire added E-good-first-issue Experience required: Beginner / New C-improvement Category: Improvement / Enhancement and removed B-bug Bug: general classification labels Mar 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-graphql Area: GraphQL Protocol C-improvement Category: Improvement / Enhancement E-good-first-issue Experience required: Beginner / New S-unverified Status: Unverified by maintainer
Projects
None yet
Development

No branches or pull requests

2 participants