usebruno / bruno

Opensource IDE For Exploring and Testing Api's (lightweight alternative to postman/insomnia)
https://www.usebruno.com/
MIT License
27.63k stars 1.28k forks source link

Setting the env variable through script cause error on setting manually error #3389

Open developer-sunnywu opened 3 weeks ago

developer-sunnywu commented 3 weeks ago

I have checked the following:

Describe the bug

Reproduce process

  1. Running a request and there is pre script to setup some env variables.
  2. Edit the env variable (same or different) manually
  3. Click save
  4. Show error "An error occurred while saving the changes"

Resolution for now

  1. Need to restart the bruno everytime to edit the env variable after every request.

.bru file to reproduce the bug

No response

JoergJans commented 2 weeks ago

+1

I experienced this, too and was just about to create an issue.

In my case it is a post script and the error occurs on every change to the environment.

sreelakshmi-bruno commented 2 weeks ago

Hi, @developer-sunnywu , I was able to reproduce this issue and we're working on this. Thanks for reporting!