usebruno/bruno · error · Error

Invalid items format: expected array

Error message

Invalid items format: expected array

What it means

Error "Invalid items format: expected array" thrown in usebruno/bruno.

Source

Thrown at packages/bruno-converters/src/insomnia/insomnia-to-bruno.js:193

    return true;
  }
  return false;
};

const parseInsomniaV5Collection = (data) => {
  const brunoCollection = {
    name: data.name || 'Untitled Collection',
    uid: uuid(),
    version: '1',
    items: [],
    environments: []
  };

  try {
    // Parse the collection items
    const parseCollectionItems = (items, allItems = []) => {
      if (!Array.isArray(items)) {
        throw new Error('Invalid items format: expected array');
      }

      return items.map((item, index) => {
        if (!item) {
          return null;
        }

        // In v5, requests might be defined with method property or meta.type
        if (item.method && item.url) {
          const request = {
            _id: item.meta?.id || uuid(),
            name: item.name || 'Untitled Request',
            url: item.url || '',
            method: item.method || '',
            headers: item.headers || [],
            parameters: item.parameters || [],
            pathParameters: item.pathParameters || [],
            authentication: item.authentication || {},

View on GitHub (pinned to 9bdd81c7bd)

Solutions

  1. Ensure the Insomnia export's resources/items field is an array.
  2. Re-export from Insomnia using the standard JSON export.

When it happens

Trigger: Thrown at packages/bruno-converters/src/insomnia/insomnia-to-bruno.js:193 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/87e1edd271434a3e. Report an issue: GitHub.