You are not logged in.

#1 2021-11-10 20:13:02

c_o_e
Member
Registered: 2021-08-14
Posts: 5

[SOLVED] Ledger Live 2.34.4: SyntaxError: JSON related?

Dear Archlinux users,

Hope that I can get some help on how to troubleshoot this.

When I try to launch 'Ledger Live' I get following error.


[20:59:04] christer@Archmain /home/christer (0)
> ledger-live-desktop                                                                                                                   
Ledger Live 2.34.4
(node:187033) UnhandledPromiseRejectionWarning: SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)
    at load (/opt/ledger-live-desktop/resources/app.asar/.webpack/main.bundle.js:3802:14)
    at async ensureNSLoaded (/opt/ledger-live-desktop/resources/app.asar/.webpack/main.bundle.js:3830:5)
    at async Object.getKey (/opt/ledger-live-desktop/resources/app.asar/.webpack/main.bundle.js:3905:3)
    at async App.<anonymous> (/opt/ledger-live-desktop/resources/app.asar/.webpack/main.bundle.js:4182:20)
(Use `ledger-live-desktop --trace-warnings ...` to show where the warning was created)
(node:187033) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an asyncng a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unharg/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:187033) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not h a non-zero exit code.
[21:01:27] christer@Archmain /home/christer (0)


Ledger live is installed from AUR, curent version 2.34.4

I also tried with the binary directly from Ledger but get the same thing.

Anyone got an idea on what is happening here and why I cant get it to run under Arch.

Thank you!

Best regards,
Christer

Last edited by c_o_e (2021-11-18 14:46:08)

Offline

#2 2021-11-10 21:14:35

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,500
Website

Re: [SOLVED] Ledger Live 2.34.4: SyntaxError: JSON related?

A good start would probably be to use `ledger-live-desktop --trace-warnings ...` to show where the warning was created.

And post the output in [ code ] tags.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2021-11-11 13:09:02

c_o_e
Member
Registered: 2021-08-14
Posts: 5

Re: [SOLVED] Ledger Live 2.34.4: SyntaxError: JSON related?

Thank you Trilby,

The output I get when running ledger-live-desktop --trace-warnings are.

 
[14:04:07] christer@Archmain /home/christer (0) 
> ledger-live-desktop --trace-warnings                                                                                                                                                                                                (base) 
Ledger Live 2.34.4
(node:296912) UnhandledPromiseRejectionWarning: SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)
    at load (/opt/ledger-live-desktop/resources/app.asar/.webpack/main.bundle.js:3802:14)
    at async ensureNSLoaded (/opt/ledger-live-desktop/resources/app.asar/.webpack/main.bundle.js:3830:5)
    at async Object.getKey (/opt/ledger-live-desktop/resources/app.asar/.webpack/main.bundle.js:3905:3)
    at async App.<anonymous> (/opt/ledger-live-desktop/resources/app.asar/.webpack/main.bundle.js:4182:20)
(Use `ledger-live-desktop --trace-warnings ...` to show where the warning was created)
(node:296912) 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:296912) [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.

             

I'm not sure that trace-warnings gave more information I am afraid.

Thanks,

Offline

#4 2021-11-18 14:45:31

c_o_e
Member
Registered: 2021-08-14
Posts: 5

Re: [SOLVED] Ledger Live 2.34.4: SyntaxError: JSON related?

Hi,

For some reson it looks like the way of starting "ledge-live-desktop" have changed.

Before it was just to start it with "ledge-live-desktop" but now I have to start it with "sudo ledge-live-desktop --no-sandbox" for some reason.

It would be interesting to know why this is, so if anyone know why the change please comment. Thank you!

Best regards!

Offline

Board footer

Powered by FluxBB