JetBrains / js-graphql-intellij-plugin

GraphQL language support for WebStorm, IntelliJ IDEA and other IDEs based on the IntelliJ Platform.
https://jimkyndemeyer.github.io/js-graphql-intellij-plugin/
MIT License
879 stars 97 forks source link

Schema request timeout #613

Closed jaydensmith closed 1 year ago

jaydensmith commented 1 year ago

It takes a few seconds to download my schema, the new version (3.2.0) throws a timeout error.

vepanimas commented 1 year ago

Hello @jaydensmith, I fixed it and the release is already available on Github. It could take several days to approve a new plugin upload in the Marketplace, so you can install an update manually if you want from the release page.

https://github.com/JetBrains/js-graphql-intellij-plugin/releases/tag/3.2.1

vladimirrostok commented 1 year ago

Hey!

I'm facing the same issue too, but the timeout from my CMS solution is much longer, as the retrospection query returns around 15k+ lines of code, is there any way to extend the timeout manually for the plugin in WebStorm?

vepanimas commented 1 year ago

Please, check the new 3.2.1 updated version, it's already available in the marketplace. The default timeout is 15 seconds now, but if it's still not enough, it would be possible to configure a timeout using a registry key.

vladimirrostok commented 1 year ago

Here is the workaround for this issue, thanks, it worked for me! (https://github.com/JetBrains/js-graphql-intellij-plugin/commit/396770c293a57f4903acdf427ba5136db6a79d0b update to timeouts)

The registry key can be amended like that:

Press Ctrl-Alt-Shift-/ and select "Registry" from the menu that appears.
(If that keyboard shortcut is not working for you, use your configured keyboard shortcut for Find Action. On Mac by default it is Shift+⌘+A, on Windows it is Shift+Ctrl+A ([docs](https://blog.jetbrains.com/idea/2020/03/top-15-intellij-idea-shortcuts/)). Then type "Registry" and click or hit enter.)
image image