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

Adding a script causes unexpected request failure #7976

Open
1 task done
ftiercelin opened this issue Sep 19, 2024 · 3 comments
Open
1 task done

Adding a script causes unexpected request failure #7976

ftiercelin opened this issue Sep 19, 2024 · 3 comments
Labels
B-bug Bug: general classification S-unverified Status: Unverified by maintainer

Comments

@ftiercelin
Copy link

ftiercelin commented Sep 19, 2024

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
insomnia_script_error_msg

Reproduction Steps

in scratchpad mode:

  1. create a new HTTP request doing a GET to https://www.google.com
  2. add a script (e.g. console.log("hello"); )
  3. execute script
    insomnia_script_error

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

@ftiercelin ftiercelin added B-bug Bug: general classification S-unverified Status: Unverified by maintainer labels Sep 19, 2024
@subnetmarco
Copy link
Member

@ihexxa

@ftiercelin
Copy link
Author

forgot to mention that I'm only seeing this in scratchpad mode - not seeing this in "normal" mode

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
B-bug Bug: general classification S-unverified Status: Unverified by maintainer
Projects
None yet
Development

No branches or pull requests

4 participants
@subnetmarco @ftiercelin and others