usebruno/bruno · error · Error

No valid collections found in the selected files

Error message

No valid collections found in the selected files

What it means

Error "No valid collections found in the selected files" thrown in usebruno/bruno.

Source

Thrown at packages/bruno-app/src/components/Sidebar/ImportCollection/FileTab.js:133

          } else if (isOpenCollection(data)) {
            type = 'opencollection';
          } else if (isBrunoCollection(data)) {
            type = 'bruno';
          }

          if (type) {
            filesData.push({ file, data, type });
          }
        } catch (err) {
          console.warn(`Failed to process file ${file.name}:`, err);
        }
      }

      if (filesData.length > 0) {
        // Pass raw filesData to be processed in BulkImportCollectionLocation
        handleSubmit({ filesData, type: 'multiple' });
      } else {
        throw new Error('No valid collections found in the selected files');
      }
    } catch (err) {
      toastError(err, 'Import multiple files failed');
    } finally {
      setIsLoading(false);
    }
  };

  const processFile = async (file) => {
    setIsLoading(true);
    try {
      const data = await convertFileToObject(file);

      if (!data) {
        throw new Error('Failed to parse file content');
      }

      let type = null;

View on GitHub (pinned to 9bdd81c7bd)

Solutions

  1. Select files that contain actual collection data (bruno.json, Postman/Insomnia exports).
  2. Verify the selected files are not empty or unrelated documents.

When it happens

Trigger: Thrown at packages/bruno-app/src/components/Sidebar/ImportCollection/FileTab.js:133 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of usebruno/bruno@9bdd81c7bd (2026-08-13). Data as JSON: /api/errors/9922b03f2976eacc. Report an issue: GitHub.