usebruno / bruno

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

Error attempying to Generate Code #2444

Open Willhoffman opened 2 weeks ago

Willhoffman commented 2 weeks ago

I have checked the following:

Describe the bug

I am using version 1.19.0 on Mac Apple Silicon. As soon as I click on the "Generate Code" option I get an error that says:

Oops! Something went wrong

If you are using an official production build: the above error is most likely a bug! Please report this under:https://github.com/usebruno/bruno/issues

.bru file to reproduce the bug

`meta { name: Random US type: http seq: 1 }

get { url: https://randomuser.me/api/?nat=us body: none auth: none }

query { nat: us } `

Screenshots/Live demo link

Screenshot 2024-06-11 at 4 13 19 PM

fgrande commented 2 weeks ago

I have the same problem on the downloaded Bruno 1.19.0 (from homeBrew) - Previous release was working fine.

Instead, the forked repository looks working fine, it open the generation code panel.

burkaman commented 2 weeks ago

Same issue, same version, but running on Windows 11.

kalimbra commented 2 weeks ago

Same here. Bruno 1.19.0 (snap install) on Ubuntu 20.04

issue on all "scripts"

burkaman commented 2 weeks ago

The stack trace is:

framework-80ea8c0f440c6a32.js:9 TypeError: Cannot read properties of undefined (reading 'externalSecrets')
    at getExternalCollectionSecretsForActiveEnvironment (_app-92e2050d0799eab9.js:17:186595)
    at getAllVariables (_app-92e2050d0799eab9.js:17:186042)
    at CodeEditor.addOverlay (443-87262752453bea5b.js:1:100581)
    at CodeEditor.value (443-87262752453bea5b.js:1:104274)
    at lk (framework-80ea8c0f440c6a32.js:9:90626)
    at jk (framework-80ea8c0f440c6a32.js:9:111105)
    at framework-80ea8c0f440c6a32.js:9:111116
    at Qk (framework-80ea8c0f440c6a32.js:9:111628)
    at Fk (framework-80ea8c0f440c6a32.js:9:96297)
    at jg (framework-80ea8c0f440c6a32.js:9:44900)

I guess this must be a bug in Golden Edition code with the new vault integration feature, as I don't see that function in this repository. I am a free user.

alexnum commented 2 weeks ago

Same here

hungdh0x5e commented 1 week ago

+1

jeffhall-wk commented 1 week ago

+1

gemiusz commented 1 week ago

+1 Confirmed on Windows:

image

SteliosGiannatos commented 1 week ago

+1

pomelo-chuan commented 1 week ago

TypeError: Cannot read properties of undefined (reading 'externalSecrets')

therox commented 1 week ago

Fedora, flatpak, 1.19, same error here.

vazome commented 3 days ago

same

mstaal commented 2 days ago

I have the same issue on Mac M1

drchiodo commented 1 day ago

+1, Bruno 1.19.0 on Windows 11 (x64)

electron | : 21.1.1
chrome | : 106.0.5249.103
node | : 16.16.0
v8 | : 10.6.194.17-electron.0