insomnia: Failing to render GraphQL Query requests
Expected Behavior
Open a request and being able to use it
Actual Behavior
When opening a GraphQL request, I get an alert modal of an Application Error, described as “Failed to render Hl”.
The Stack Trace is as follows:
TypeError: e.includes is not a function
at KVe (file:///Applications/Insomnia.app/Contents/Resources/app.asar/index-37d8fc4b.js:470:868)
at _l (file:///Applications/Insomnia.app/Contents/Resources/app.asar/debug-672b1df6.js:53:34237)
at FS (file:///Applications/Insomnia.app/Contents/Resources/app.asar/index-37d8fc4b.js:42:19553)
at aF (file:///Applications/Insomnia.app/Contents/Resources/app.asar/index-37d8fc4b.js:44:44101)
at tF (file:///Applications/Insomnia.app/Contents/Resources/app.asar/index-37d8fc4b.js:44:39819)
at qpe (file:///Applications/Insomnia.app/Contents/Resources/app.asar/index-37d8fc4b.js:44:39745)
at Fd (file:///Applications/Insomnia.app/Contents/Resources/app.asar/index-37d8fc4b.js:44:39596)
at Px (file:///Applications/Insomnia.app/Contents/Resources/app.asar/index-37d8fc4b.js:44:35959)
at QO (file:///Applications/Insomnia.app/Contents/Resources/app.asar/index-37d8fc4b.js:44:34906)
at N (file:///Applications/Insomnia.app/Contents/Resources/app.asar/index-37d8fc4b.js:29:1615)
at Immediate.me [as _onImmediate] (file:///Applications/Insomnia.app/Contents/Resources/app.asar/index-37d8fc4b.js:29:1987)
at process.processImmediate (node:internal/timers:476:21)
The collection requests list and the response pane render successfully, but the middle pane where the request context is defined just says Render Failure: e.includes is not a function
Reproduction Steps
1 - Open collection 2 - Open a request identified as GraphQL Query
Is there an existing issue for this?
- I have searched the issue tracker for this problem.
Additional Information
No response
Insomnia Version
8.4.4
What operating system are you using?
macOS
Operating System Version
macOS Sonoma 14.1.1
Installation method
brew
Last Known Working Insomnia version
8.4.2
About this issue
- Original URL
- State: closed
- Created 7 months ago
- Reactions: 19
- Comments: 20 (8 by maintainers)
Hey folks, we will launch a new release with a fix for this today, 8.4.5.
Closing this as a duplicate of #6857
For visibility @subnetmarco, this is the root cause of this issue - https://github.com/Kong/insomnia/blob/da01223886a03583100a86aa3c97311ad42a64e6/packages/insomnia/src/ui/components/editors/body/graph-ql-editor.tsx#L629
The value is passed as JSON when it requires string and refers to String.includes() method. Obviously, Object does not have .includes and throws error.
@camiloclc Thank you so much for the help on reproducing this issue!!!
I could do it in a couple of hours