-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Unable to send any requests since the latest update #8380
Comments
Got the same error. I noticed that all the requests with pre-request scripts are having this problem. |
I have the same error:
It's appears when I send request with a After-response script. |
the |
I believe my issue is connected with the OP's although I've tried both Any time I add a Pre-request script of any value (even comments), an extra forward-slash is added to the request URI and I get back a 404 response. Here's a good working example: And here's what happens when I populate something in Pre-request: Whether it is commented code or not, as long as Pre-request is populated with some value, the outcome is the same. |
As a workaround, you can remove the path |
Ah I didn't consider that -- will give it a try tomorrow @notjaywu, thanks. |
Can confirm, removing any pre-request scripts have worked for me, will do for the meantime |
So it seems the scripts are broken and we can't use it until there is a new version of Insomnia with a fix. If I put anything (console.log('welcome') or only a comment line) in the Pre-request script I get the error "Error: SSL connect error" |
@JdKock Which version are you using? Did you send a request with a self-signed certificate, and the url has tags? Thanks! |
@notjaywu I'm using Insomnia v10.3.1 and never had issues but also never used scripts before. When I add something to the scripts I get this error. When I leave the scripts totally empty there is no issue at all. |
I just faced the same issue. What I don't understand is that I have two requests, one of them worked using an after-request script and the second one failed, even the script being very simple (setting a variable value with the response json body). Is there any workaround? I really need to rely on the after-request scripts on a daily basis. I am using version 10.3.1. |
Same issue here, very similar error messages after updating to 10.3.1. Reverting to 10.3.0 (and disabling future updates) does fix the issue. Removing my after-response script (a template snippet checking for response code 200) also fixes the issue. This thread has traffic but is not tagged as a bug. I know that the title of the post is a little vague. Does anyone know if there is a relevant bug to be tracking? |
I would expect that to be for the developers to manage. As you say, enough activity on the thread to get their eyeballs on it so hopefully it'll be prioritised accordingly. If that's not how things work around here, tag away... I guess. |
This workaround was successful in my specific case, but not likely much help to those with broader issues for pre/after scripts breaking requests. |
For me reverting to v10.3.0 is not helping. Still the same issue when I add some pre-request script. I also removed the environment variable in the url. But nothing helped. |
If you're able, upgrade to the latest beta version: https://github.com/Kong/insomnia/releases/tag/core%4011.0.0-beta.1 it has a fix for the scripting issues @kdallas I'm looking into your trailing slash side-effect caused by the scripts. @JdKock are you using mTLS with client certificates? |
@ryan-willis I installed 11.0.0-beta.1 and created a GET request to url: https://randomuser.me/api/ with:
Response: Console:
If I remove the pre-request script and leave it empty I get a normal response. |
From which version of Insomnia did this error start happening, and which version should I install to downgrade? |
@JdKock Could you verify if this version v10.1.1 works for you? |
@notjaywu I installed version 10.1.1 and did the same test as above, that means I added a simple log statement to the pre-request. Now this fix must to be merged to v11.0.0? |
@JdKock If you still have v10.3.1 installed, you could also check if your https proxy works well by removing all https proxy addresses. Because the error "wrong version number" seems telling that the https proxy is actually providing http service. ![]() |
The response I get no matter what type of request (GET, POST, PUT, DELETE) returns the following error:
message: undefined; stack: Error: message: (unknown path) [Line 1, Column 12]
attempted to output null or undefined value; stack: Template render error: (unknown path) [Line 1, Column 12]
attempted to output null or undefined value
at Object.P [as _prettifyError] (file:///Applications/Insomnia.app/Contents/Resources/app.asar/sentry-RNTkbMCO.js:5:39127)
at file:///Applications/Insomnia.app/Contents/Resources/app.asar/sentry-RNTkbMCO.js:19:7018
at ae.root [as rootRenderFunc] (eval at ie._compile (file:///Applications/Insomnia.app/Contents/Resources/app.asar/sentry-RNTkbMCO.js:19:7663), :20:3)
at ie.render (file:///Applications/Insomnia.app/Contents/Resources/app.asar/sentry-RNTkbMCO.js:19:6932)
at ie.renderString (file:///Applications/Insomnia.app/Contents/Resources/app.asar/sentry-RNTkbMCO.js:19:4938)
at M5.render (file:///Applications/Insomnia.app/Contents/Resources/app.asar/sentry-RNTkbMCO.js:76:16068)
at $V.replaceIn (file:///Applications/Insomnia.app/Contents/Resources/app.asar/sentry-RNTkbMCO.js:89:1270)
at vre (file:///Applications/Insomnia.app/Contents/Resources/app.asar/sentry-RNTkbMCO.js:89:10187)
at h (file:///Applications/Insomnia.app/Contents/Resources/app.asar/hiddenBrowserWindow-Cz0sW5QM.js:1:747)
at file:///Applications/Insomnia.app/Contents/Resources/app.asar/hiddenBrowserWindow-Cz0sW5QM.js:1:374
at port.onmessage (/Applications/Insomnia.app/Contents/Resources/app.asar/hidden-window-preload.js:128771:36)
at port.onmessage (/Applications/Insomnia.app/Contents/Resources/app.asar/preload.js:92:18)
The text was updated successfully, but these errors were encountered: