diff --git a/packages/bruno-electron/src/ipc/network/authorize-user-in-window.js b/packages/bruno-electron/src/ipc/network/authorize-user-in-window.js index 51ba8b654e..79cf86a850 100644 --- a/packages/bruno-electron/src/ipc/network/authorize-user-in-window.js +++ b/packages/bruno-electron/src/ipc/network/authorize-user-in-window.js @@ -174,6 +174,11 @@ const authorizeUserInWindowImplicit = ({ authorizeUrl, callbackUrl, session }) = try { await window.loadURL(authorizeUrl); } catch (error) { + // If browser redirects before load finished, loadURL throws an error with code ERR_ABORTED. This should be ignored. + if (error.code === 'ERR_ABORTED') { + console.debug('Ignoring ERR_ABORTED during authorizeUserInWindow'); + return; + } reject(error); window.close(); }