insomnia icon indicating copy to clipboard operation
insomnia copied to clipboard

[Bug] GraphQL Query variables, are market as not appear in any GraphQL query, but they are!

Open wemersonrv opened this issue 5 years ago • 14 comments

Insomnia Version: 7.0.3 Operating System: Windows 10 x64

Describe the bug When access stored graphql request, all Query variables are marked as not appear in any graphql query. But they are, because were used before and stored in a request.

To Reproduce

  1. Create a new GraphQL request with some variables
  2. Run query, it need to work with variables.
  3. Now, close insomnia or go to another query
  4. Return to request created before, and check the variables. You will see all variables marked as invalid
  5. Just retype the same variable name, and all variables will works again

Expected behavior As the stored request has valid query variables, so the query works fine. BUT... all queries are marked as invalid

Screenshots image

Desktop (please complete the following information):

  • OS: Windows 10 64 bits
  • Installation Method: Windows installer
  • App Version: 7.0.3

Additional context Everything works... just the variables are marked as does not appear in any query. But if you check in my screenshot, the updatePost query contains the variables, none of them are missing.

wemersonrv avatar Jan 20 '20 18:01 wemersonrv

Same problem here. Did you find a solution?

felinto-dev avatar Sep 27 '20 18:09 felinto-dev

same problem here, but the mutation is not being executed

GlennMm avatar Oct 25 '20 09:10 GlennMm

same problem here, this problem has been around for a year now I think

etyberick avatar Jan 19 '21 19:01 etyberick

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar May 27 '21 21:05 stale[bot]

similar issue

a-covar avatar Jul 01 '21 21:07 a-covar

Same issue here image

mendy-lp avatar Dec 15 '22 16:12 mendy-lp

Is this issue still reproducible in the latest version of Insomnia?

wongstein avatar Jan 11 '23 00:01 wongstein

Yes. I can get you a screenshot tomorrow if you need it. Thx.

robpark avatar Jan 11 '23 02:01 robpark

Same issue: I've got the error despite everything working fine. I'm using version v2022.7.2 on MacOS.

Though, I've noticed something strange: the error disappears when the schema is loaded ("schema fetched just now"). When I switch tab and switch back again, the error comes back.

See the video (example with Github GraphQL API):

https://user-images.githubusercontent.com/47944500/212424831-2bb1a3d8-63b0-41d2-a3a8-5b8faf9ac121.mov

benjamin-guibert avatar Jan 13 '23 21:01 benjamin-guibert

I've only just started experiencing this, and I also found that manually fetching the schema wasn't working and I couldn't view the documentation.

I've always had "Automatic Fetch" turned off for schema introspection.

I turned "Automatic Fetch" back on, and it recognised the variables were there and the documentation started to work again.

Catharz avatar Jan 16 '23 23:01 Catharz

Same issue here, I first noticed it in version 2022.7.0 and the issue persists in version 2022.7.5

fnzr avatar Feb 01 '23 18:02 fnzr

I thought I'm doing something wrong. I new to Insomnia and just dowloaded the app, have same issue

atomeon avatar Feb 17 '23 05:02 atomeon

same issue here

Version: Insomnia 2022.7.3
Build date: 1/16/2023
OS: Linux x64 6.1.18-200.fc37.x86_64
Electron: 22.0.0
Node: 16.17.1
V8: 10.8.168.20-electron.0
Architecture: x64

insomnia graphql variable bug screenshot

ewertonls avatar Mar 22 '23 15:03 ewertonls

Same here, and I can not clear variables. After removed it, I send request and it show again

pvhuy84 avatar Dec 18 '23 03:12 pvhuy84