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

Failed to render yc error when sending a GraphQL endpoint #5578

Closed
1 task done
michaelalpine opened this issue Dec 22, 2022 · 7 comments
Closed
1 task done

Failed to render yc error when sending a GraphQL endpoint #5578

michaelalpine opened this issue Dec 22, 2022 · 7 comments
Labels
A-graphql Area: GraphQL Protocol B-bug Bug: general classification B-graphql-2022.7.0 Bug: Graphql issues 2022.7.0 N-investigation Needs: investigation S-unverified Status: Unverified by maintainer

Comments

@michaelalpine
Copy link

Expected Behavior

When we try to open our workspace and hit our graphql endpoint, we just get a failed to render yc error, and then can't make any reuqests.

Actual Behavior

The program errors out and we can't do anything

Reproduction Steps

Just open it and try to open a GQL query

Is there an existing issue for this?

Additional Information

Here is what we get upon opening
image

Then going to any other request we just get this
image

Insomnia Version

2022.7.0

What operating system are you using?

Windows

Operating System Version

Windows 10 & 11

Installation method

Download from insomnia

Last Known Working Insomnia version

2022.6.0

@michaelalpine michaelalpine added B-bug Bug: general classification S-unverified Status: Unverified by maintainer labels Dec 22, 2022
@ajanini
Copy link

ajanini commented Dec 26, 2022

I have the same issue.

Stack trace:

Error: Type Query must define one or more fields.
    at nR (file:///Applications/Insomnia.app/Contents/Resources/app.asar/index.7cb7367d.js:504:12630)
    at y_ (file:///Applications/Insomnia.app/Contents/Resources/app.asar/index.7cb7367d.js:506:43944)
    at AK (file:///Applications/Insomnia.app/Contents/Resources/app.asar/index.7cb7367d.js:635:356)
    at FK (file:///Applications/Insomnia.app/Contents/Resources/app.asar/index.7cb7367d.js:641:211)
    at Object.DTe (file:///Applications/Insomnia.app/Contents/Resources/app.asar/index.7cb7367d.js:641:147)
    at file:///Applications/Insomnia.app/Contents/Resources/app.asar/index.7cb7367d.js:646:2557
    at x (file:///Applications/Insomnia.app/Contents/Resources/app.asar/index.7cb7367d.js:431:14293)
    at ii.<anonymous> (file:///Applications/Insomnia.app/Contents/Resources/app.asar/index.7cb7367d.js:431:16262)
    at file:///Applications/Insomnia.app/Contents/Resources/app.asar/index.7cb7367d.js:407:10355
    at ii.setOption (file:///Applications/Insomnia.app/Contents/Resources/app.asar/index.7cb7367d.js:412:1978)
    at file:///Applications/Insomnia.app/Contents/Resources/app.asar/index.7cb7367d.js:671:5056
    at mE (file:///Applications/Insomnia.app/Contents/Resources/app.asar/index.7cb7367d.js:67:24458)
    at nh (file:///Applications/Insomnia.app/Contents/Resources/app.asar/index.7cb7367d.js:67:42799)
    at file:///Applications/Insomnia.app/Contents/Resources/app.asar/index.7cb7367d.js:67:41058
    at A (file:///Applications/Insomnia.app/Contents/Resources/app.asar/index.7cb7367d.js:52:1648)
    at Immediate.ce [as _onImmediate] (file:///Applications/Insomnia.app/Contents/Resources/app.asar/index.7cb7367d.js:52:2022)
    at process.processImmediate (node:internal/timers:466:21)

@fluidsonic
Copy link

Same, this is super annoying.

As a workaround to disable all checks and autocompletion:

  • Navigate to a query that isn't broken
  • Restart Insomnia or reopen the project to load that query
  • Click on "schema"
  • Disable "Automatic Fetch"
  • Click "Load schema from JSON"
  • Load an empty file

That will cause an error but also disable all checks and autocompletion.
Now you can fix the query and re-enable "Automatic Fetch".

@michaelalpine
Copy link
Author

@fluidsonic we ended up rolling back a version so we could have auto complete and what not but that's good to know. Just uninstall and install this version if you want. https://github.com/Kong/insomnia/releases/tag/core%402022.6.0

@fluidsonic
Copy link

Thanks, I was looking for that one! 🙏

@filfreire filfreire changed the title Can't use latest version at all Failed to render yc error when sending a GraphQL endpoint Jan 4, 2023
@filfreire filfreire added A-graphql Area: GraphQL Protocol N-investigation Needs: investigation labels Jan 4, 2023
@filfreire
Copy link
Member

Hi folks, this should be fixed in #5611

A patch release will go out today with the fix. Feel free to report any other thing you find

@michaelalpine
Copy link
Author

I just updated and it seems to be fixed for me. Thanks!

@filfreire filfreire added the B-graphql-2022.7.0 Bug: Graphql issues 2022.7.0 label Jan 5, 2023
@bartlomiej-kochanowicz
Copy link

bartlomiej-kochanowicz commented Jan 7, 2023

Same here, version 2022.7.0.

I just passed wrong argument to field in variables, without sending request and I got these permanently error - i can not do anything without reinstalling whole app.

GraphQLError: Enum "Currency" cannot represent non-string value: 2137. at Yl.parseValue (file:///Applications/Insomnia.app/Contents/Resources/app.asar/index.7cb7367d.js:502:10673) at Vm (file:///Applications/Insomnia.app/Contents/Resources/app.asar/index.7cb7367d.js:646:20522) at file:///Applications/Insomnia.app/Contents/Resources/app.asar/index.7cb7367d.js:646:19879 at Array.map (<anonymous>) at H5 (file:///Applications/Insomnia.app/Contents/Resources/app.asar/index.7cb7367d.js:646:20809) at Vm (file:///Applications/Insomnia.app/Contents/Resources/app.asar/index.7cb7367d.js:646:19659) at Vm (file:///Applications/Insomnia.app/Contents/Resources/app.asar/index.7cb7367d.js:646:19335) at file:///Applications/Insomnia.app/Contents/Resources/app.asar/index.7cb7367d.js:646:19019 at Array.forEach (<anonymous>) at UCe (file:///Applications/Insomnia.app/Contents/Resources/app.asar/index.7cb7367d.js:646:18928) at file:///Applications/Insomnia.app/Contents/Resources/app.asar/index.7cb7367d.js:646:18866 at x (file:///Applications/Insomnia.app/Contents/Resources/app.asar/index.7cb7367d.js:431:14293) at ii.<anonymous> (file:///Applications/Insomnia.app/Contents/Resources/app.asar/index.7cb7367d.js:431:16262) at file:///Applications/Insomnia.app/Contents/Resources/app.asar/index.7cb7367d.js:407:10355 at ii.setOption (file:///Applications/Insomnia.app/Contents/Resources/app.asar/index.7cb7367d.js:412:1978) at file:///Applications/Insomnia.app/Contents/Resources/app.asar/index.7cb7367d.js:671:5056 at mE (file:///Applications/Insomnia.app/Contents/Resources/app.asar/index.7cb7367d.js:67:24458) at nh (file:///Applications/Insomnia.app/Contents/Resources/app.asar/index.7cb7367d.js:67:42799) at file:///Applications/Insomnia.app/Contents/Resources/app.asar/index.7cb7367d.js:67:41058 at A (file:///Applications/Insomnia.app/Contents/Resources/app.asar/index.7cb7367d.js:52:1648) at Immediate.ce [as _onImmediate] (file:///Applications/Insomnia.app/Contents/Resources/app.asar/index.7cb7367d.js:52:2022) at process.processImmediate (node:internal/timers:466:21)

Perm error (wong arg which I mentioned above):
Screenshot 2023-01-07 at 13 45 48

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-graphql Area: GraphQL Protocol B-bug Bug: general classification B-graphql-2022.7.0 Bug: Graphql issues 2022.7.0 N-investigation Needs: investigation S-unverified Status: Unverified by maintainer
Projects
None yet
Development

No branches or pull requests

5 participants