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 "after-response script" causes stack error #8446

Open
2 of 4 tasks
lastcoolnameleft opened this issue Mar 11, 2025 · 1 comment
Open
2 of 4 tasks

Adding "after-response script" causes stack error #8446

lastcoolnameleft opened this issue Mar 11, 2025 · 1 comment
Labels
B-bug Bug: general classification S-unverified Status: Unverified by maintainer

Comments

@lastcoolnameleft
Copy link

lastcoolnameleft commented Mar 11, 2025

Expected Behavior

Expected behavior: Request responds the same/don't crash without the "after-response script".

Actual Behavior

If I add the following to after-response script, I get the following error:

Script:

console.log("HERE");

Error:

message: undefined; stack: Error: message: domain is not specified for the cookie sails.sid; stack: Error: domain is not specified for the cookie sails.sid
    at file:///Applications/Insomnia.app/Contents/Resources/app.asar/sentry-RNTkbMCO.js:76:43451
    at Array.forEach (<anonymous>)
    at new i0 (file:///Applications/Insomnia.app/Contents/Resources/app.asar/sentry-RNTkbMCO.js:76:43401)
    at new x5 (file:///Applications/Insomnia.app/Contents/Resources/app.asar/sentry-RNTkbMCO.js:76:43211)
    at vre (file:///Applications/Insomnia.app/Contents/Resources/app.asar/sentry-RNTkbMCO.js:89:9763)
    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)

Reproduction Steps

  • Create new GET request (nothing special).
  • Set URL to "https://postman-echo.com/get". (again, nothing special)
  • Click "Send"
  • Everything works as normal
  • Add the following to the "After Response script"
console.log("HERE");
  • Click "send". Get error mentioned above
  • Remove "After Response script"
  • Everything works as normal.
  • Restart app: Get same behavior.

Is there an existing issue for this?

Which sync method do you use?

  • Git sync.
  • Insomnia Cloud sync.
  • Local only

Additional Information

The app was working fine in my environment before. I took a dinner break and when I came back, I got this error every time I try using the "After Response script

Insomnia Version

Version: Insomnia 10.3.1
Build date: 2/7/2025
OS: Darwin arm64 24.3.0
Electron: 33.3.1
Node: 20.18.1
Node ABI: 130
V8: 13.0.245.24-electron.0
Architecture: arm64

What operating system are you using?

macOS

Operating System Version

Mac 15.3

Installation method

Insomnia.rest

Last Known Working Insomnia version

Insomnia 10.3.1

@lastcoolnameleft lastcoolnameleft added B-bug Bug: general classification S-unverified Status: Unverified by maintainer labels Mar 11, 2025
@ihexxa
Copy link
Contributor

ihexxa commented Mar 12, 2025

Although I can't reproduce by visiting same site, please open "Manage Cookies" and delete the cookie from "postman-echo.com" and see if it works. And I'll also take a look to turn it into a warning instead blocking error.

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

2 participants