insomnia icon indicating copy to clipboard operation
insomnia copied to clipboard

Execute pre-request script failed: TypeError: Cannot convert undefined or null to object

Open jayantwaghulde opened this issue 1 year ago • 4 comments

Expected Behavior

I am looking to migrate my postman script to insomnia, but every time insomnia return 'Execute pre-request script failed: TypeError: Cannot convert undefined or null to object" even for console.log("Hello");

Actual Behavior

I should be able to write the script in which I can to set the response value of the GET API into the environment variable.

Reproduction Steps

No response

Is there an existing issue for this?

Additional Information

No response

Insomnia Version

Insomnia 10.0.0

What operating system are you using?

macOS

Operating System Version

Apple M3 Pro 14.6.1 (23G93)

Installation method

download insomnia

Last Known Working Insomnia version

Insomnia 10.0.0

jayantwaghulde avatar Oct 04 '24 08:10 jayantwaghulde

@ihexxa

subnetmarco avatar Oct 08 '24 02:10 subnetmarco

This issue seems to be same with #7976 , more information is included for identification.

ihexxa avatar Oct 08 '24 08:10 ihexxa

@jayantwaghulde Can you join our Slack channel https://chat.insomnia.rest, so we can DM you how to reproduce it, thanks.

notjaywu avatar Oct 08 '24 09:10 notjaywu

Hello @jayantwaghulde, would you mind to update to the latest 10.1, which will return more information to help us identify the issue, thank you.

ihexxa avatar Oct 18 '24 01:10 ihexxa

Closing this issue as no further feedback has been received.

ihexxa avatar Oct 30 '24 10:10 ihexxa