bruno icon indicating copy to clipboard operation
bruno copied to clipboard

Import collection failed

Open Abdallah9858 opened this issue 9 months ago • 3 comments

I have checked the following:

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

Describe the bug

Screenshot from 2024-05-13 11-52-34

.bru file to reproduce the bug

No response

Screenshots/Live demo link

Screenshot from 2024-05-13 11-52-34

Abdallah9858 avatar May 13 '24 08:05 Abdallah9858

Hi @Abdallah9858, please share more information and the exported JSON file for the collection you are trying to import.

sanjai0py avatar May 13 '24 10:05 sanjai0py

I am not sure if this is connected, but I've seen similar issue for postman collection shared from their server. If you share and download the collection via link (as one of my colleagues did), then the resulting file had this structure:

{
  "collection": {
    "info": {
      "_postman_id": "some-id",
      "name": "somename",
      "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
      "updatedAt": "2024-05-09T08:24:07.000Z",
      "uid": "123123123-some-id",
      "createdAt": null,
      "lastUpdatedBy": null
    },
    "item": [...]
  }
}

The schema version looked like it should be supported, so just for the sake of it, I removed the first level (replacing {"collection": {...}} with just {...}) and the import worked.

rgembalik avatar May 13 '24 13:05 rgembalik

Hi @Abdallah9858, please share more information and the exported JSON file for the collection you are trying to import.

What kind of information you need me to share ? Thanks

Abdallah9858 avatar May 15 '24 05:05 Abdallah9858

same here, before importing Postman collections were working, now it's not without any error

MrFishchev avatar May 27 '24 10:05 MrFishchev

same here, before importing Postman collections were working, now it's not without any error

Ok, for me it was a firewall it didn't let Bruno to write to some folders. I selected Location in a home folder and it works.

MrFishchev avatar May 27 '24 12:05 MrFishchev