electron icon indicating copy to clipboard operation
electron copied to clipboard

Unhandled Promise Rejection Error: ERR_FAILED (-2) loading

Open keithfawcett opened this issue 1 year ago • 4 comments

Describe the bug The app is throwing this error when attempting to launch it a second time or when attempting to launch it via a Deep Link in Windows. This only happens when DeepLink is enabled in capacitor.config.js.

I have not tested in other OSes.

Unhandled Promise Rejection Error: ERR_FAILED (-2) loading 'capacitor-electron://-' at rejectAndCleanup (node:electron/js2c/browser_init:2:85056) at WebContents.stopLoadingListener (node:electron/js2c/browser_init:2:85443) at WebContents.emit (node:events:513:28)

To Reproduce Attempt to launch the app a second time via executable or through a deep link.

Expected behavior The second instance should close without an error.

Desktop (please complete the following information):

  • OS: Windows 11
  • Version: Electron Community version 5.0.1

keithfawcett avatar Aug 28 '24 19:08 keithfawcett

Can confirm to see this error too. We also have deepLinksEnabled.

JendaT avatar Oct 24 '24 16:10 JendaT

Unfortunately, this is still an issue for me as well. I was unable to find a way to keep the second instance from causing this error.

keithfawcett avatar Nov 09 '24 02:11 keithfawcett

I have the same issue, has someone any solution found yet?

SossenSystems avatar Feb 06 '25 23:02 SossenSystems

any fix?

IbrahimElkhatib avatar Feb 18 '25 10:02 IbrahimElkhatib