max-mapper / max-mapper/menubar

[Kubuntu] (node:18092) UnhandledPromiseRejectionWarning: Error: ERR_INVALID_URL (-300) loading ''

Open
#351 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
6.8k
Forks
363
PR merge metrics
No merged PRs in 30d

Description

Description
Steps to Reproduce the Problem
  1. download my project https://github.com/Darkempire78/Fast-Clipboard-Recover
  2. npm i / npm start
Error
(node:18092) UnhandledPromiseRejectionWarning: Error: ERR_INVALID_URL (-300) loading ''
    at rejectAndCleanup (electron/js2c/browser_init.js:213:985)
    at Object.failListener (electron/js2c/browser_init.js:213:1198)
    at Object.emit (events.js:315:20)
    at NavigationController.loadURL (electron/js2c/browser_init.js:213:2102)
    at BrowserWindow.n.loadURL (electron/js2c/browser_init.js:33:1779)
    at Menubar.<anonymous> (/home/darkempire/Bureau/Fast-Clipboard-Recover/node_modules/menubar/lib/Menubar.js:360:66)
    at step (/home/darkempire/Bureau/Fast-Clipboard-Recover/node_modules/menubar/lib/Menubar.js:57:23)
    at Object.next (/home/darkempire/Bureau/Fast-Clipboard-Recover/node_modules/menubar/lib/Menubar.js:38:53)
    at /home/darkempire/Bureau/Fast-Clipboard-Recover/node_modules/menubar/lib/Menubar.js:32:71
    at new Promise (<anonymous>)
(Use `electron --trace-warnings ...` to show where the warning was created)
(node:18092) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:18092) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Specifications
  • Menubar version: 9.0.5
  • Platform: Kubuntu v20.04.02 LTS, KDE
  • Electron version: 13.1.7
Other information

I use electron-forge

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the report with npm i and npm start using the linked Fast-Clipboard-Recover project, then inspect the failing Menubar.loadURL call at node_modules/menubar/lib/Menubar.js:360 and the Electron NavigationController.loadURL stack. Done means the application starts without ERR_INVALID_URL or an unhandled promise rejection.

Written by the indexing model from the issue text.

Assessment

Tech stack
electron, typescript
Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.