Closed ftiercelin closed 3 weeks ago
@ihexxa
forgot to mention that I'm only seeing this in scratchpad mode - not seeing this in "normal" mode
This is weird, I can't reproduce, probably I missed something. Is there any folder-level script? Could you check this:
Thank you for the detailed report.
Thanks @ihexxa for looking into this, I tried the help menu but could not locate the show/hide option you were referring to:
I ran again the query (which failed for the same reason), here are the console logs: insomnia_console_scratchpad.txt
I looked in the folder, no script:
might be worth mentioning that:
I tried to enable the proxy in the scratchpad mode still not able to reproduce it. I may improve the error message to help identify it in the next.
Thanks @ihexxa, I'll retry when the next version is pushed out.
Hello @ftiercelin , would you mind to update to 10.1, which provides more information and could be helpful for us to identify the issue.
Hi @ihexxa , I upgraded to 10.0.1, logout, started scratchpad mode. I can't provide you logs of the failure, because, well.... it's not failing anymore 👍 I have added a pre script (in addition to the existing after script), still works fine.
no longer failing after upgrading to 10.0.1
I ran into a similar issue. When there's content in the pre-script, the HTTP proxy turns into NaN.
Thanks @FunkySamuel37, it's revealing, let me check.
Expected Behavior
In scratchpad mode, I created a request that does a GET on https://www.google.com I ran the request successfully. I then added an after-response script that does:
console.log("hello!");
Actual Behavior
after adding the script, the request consistently fails with error:
Execute after-response script failed: TypeError: Cannot convert undefined or null to object
Reproduction Steps
in scratchpad mode:
console.log("hello");
)Is there an existing issue for this?
Additional Information
Version: Insomnia 10.0.0 Build date: 9/9/2024 OS: Windows_NT x64 10.0.19045 Electron: 31.4.0 Node: 20.16.0 Node ABI: 125 V8: 12.6.228.30-electron.0 Architecture: x64
Insomnia Version
10.0.0
What operating system are you using?
Windows
Operating System Version
Windows_NT x64 10.0.19045
Installation method
insomnia automated update
Last Known Working Insomnia version
n/a