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

Error occurred in handler for 'renderer:browse-files': TypeError: properties is not iterable #3960

Open
2 tasks done
bu6n opened this issue Feb 6, 2025 · 3 comments
Open
2 tasks done
Assignees
Labels
bug Something isn't working

Comments

@bu6n
Copy link

bu6n commented Feb 6, 2025

I have checked the following:

  • I use the newest version of bruno.
  • I've searched existing issues and found nothing related to my issue.

Describe the bug

I'm trying to import a postman collection in an empty Bruno instance. When I click the "Postman collection" button, I get the message "Import Collection failed" before even having been able to choose a file. The logs say:

Error occurred in handler for 'renderer:browse-files': TypeError: properties is not iterable
    at browseFiles (/opt/Bruno/resources/app.asar/src/utils/filesystem.js:253:33)
    at /opt/Bruno/resources/app.asar/src/ipc/collection.js:113:20
    at WebContents.<anonymous> (node:electron/js2c/browser_init:2:87037)
    at WebContents.emit (node:events:518:28)

I'm using the latest nightly build for Linux ARM64 (https://github.com/usebruno/bruno-nightly-builds/releases/download/v1.39.0-2025.2.5/bruno_1.39.0-2025.2.5_aarch64_linux.rpm) on Fedora 40. Same happens with the AppImage build.

The other import buttons (Bruno collection, Insomnia Collection, OpenAPI V3 File) are opening a file picker as expected

.bru file to reproduce the bug

No response

Screenshots/Live demo link

template.mp4
@bu6n bu6n added the bug Something isn't working label Feb 6, 2025
@sreelakshmi-bruno sreelakshmi-bruno self-assigned this Feb 7, 2025
@sreelakshmi-bruno
Copy link
Collaborator

Hi @bu6n, thanks for reporting, we have a fix and have released it in our latest nightly build. Please check it out and let me know how it goes. Thanks!

@bu6n
Copy link
Author

bu6n commented Feb 7, 2025

Hi @sreelakshmi-bruno. Unfortunately this is still crashing with the same error on bruno_1.39.0-2025.2.6_arm64_linux.AppImage. Not sure what's happening, the code seems straightforward at that line...

Error occurred in handler for 'renderer:browse-files': TypeError: properties is not iterable
    at browseFiles (/tmp/.mount_bruno_IZaab1/resources/app.asar/src/utils/filesystem.js:253:33)
    at /tmp/.mount_bruno_IZaab1/resources/app.asar/src/ipc/collection.js:113:20
    at WebContents.<anonymous> (node:electron/js2c/browser_init:2:87037)
    at WebContents.emit (node:events:518:28)

@bu6n
Copy link
Author

bu6n commented Feb 10, 2025

I've been able to launch the project on the main branch on my machine and the dialog is showing (I can't reproduce the bug). However I'm not sure how to build the project locally to be able to use it (either AppImage or rpm would work).
With npm run build:electron:linux I get a red error on launch. With npm run build:electron:rpm the script fails because it downloads some x86 things while I'm on aarch64.

Maybe the source of the bug is in the packaging and not in the code?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants