usebruno/bruno · error · Error

Too many jumps, possible infinite loop

Error message

Too many jumps, possible infinite loop

What it means

Error "Too many jumps, possible infinite loop" thrown in usebruno/bruno.

Source

Thrown at packages/bruno-electron/src/ipc/network/index.js:2134

            });
          }

          if (stopRunnerExecution) {
            deleteCancelToken(cancelTokenUid);
            mainWindow.webContents.send('main:run-folder-event', {
              type: 'testrun-ended',
              collectionUid,
              folderUid,
              statusText: 'collection run was terminated!',
              runCompletionTime: new Date().toISOString()
            });
            break;
          }

          if (nextRequestName !== undefined) {
            nJumps++;
            if (nJumps > 10000) {
              throw new Error('Too many jumps, possible infinite loop');
            }
            if (nextRequestName === null) {
              break;
            }
            const nextRequestIdx = folderRequests.findIndex((request) => request.name === nextRequestName);
            if (nextRequestIdx >= 0) {
              currentRequestIndex = nextRequestIdx;
            } else {
              console.error('Could not find request with name \'' + nextRequestName + '\'');
              currentRequestIndex++;
            }
          } else {
            currentRequestIndex++;
          }
        }

        deleteCancelToken(cancelTokenUid);
        if (!stopRunnerExecution) {

View on GitHub (pinned to 9bdd81c7bd)

Solutions

  1. Check pre-request/post-response scripts for recursive jumps (setNextRequest loops).
  2. Limit the number of request chain jumps in the collection runner.

When it happens

Trigger: Thrown at packages/bruno-electron/src/ipc/network/index.js:2134 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/46549202ebef1c35. Report an issue: GitHub.