sciancio / connectionmanager2

Simple GUI app for Gnome 3 that provides a menu for initiating SSH/Telnet connections
60 stars 45 forks source link

SyntaxError: JSON.parse: unexpected character at line 1 column 2 of the JSON data #67

Open pieska opened 5 years ago

pieska commented 5 years ago

On RHEL7.6 (Gnome 3.28) the latest version of comnection manager does not load:

2019-05-08T10:00:49.637228+02:00 bn2lts101 journal: Extension "connectionmanager2@ciancio.net" had error: SyntaxError: JSON.parse: unexpected character at line 1 column 2 of the JSON data

Which JSON data could that be? How to debug the issue?

Arrakaij commented 5 years ago

For my Gnome (3.28.3 on Centos 7) the error appears in file extension.js, Line 113 To Fix: Change: let jsondata = JSON.parse(ByteArray.toString(filedata[1])); To: let jsondata = JSON.parse(filedata[1]);

Restart Gnome afterwards (Alt+F2, r); I also had to delete my config file ~/.connmgr