paviro / MMM-FRITZ-Box-Callmonitor

This an extension for the MagicMirror. It provides a callmonitor for FRITZ!Box users alerting them about incoming calls.
28 stars 22 forks source link

Uncaught SyntaxError after Update to MagicMirror v2.13.0 #41

Open eckonator opened 3 years ago

eckonator commented 3 years ago

Hi, after updating my MagicMirror to v2.13.0, i got this error:

Uncaught SyntaxError: JSON.parse: expected double-quoted property name at line 5 column 3 of the JSON data

onreadystatechange http://110.120.100.80:8080/js/translator.js:22

The error was caused by a comment in the language files of the module "MMM-FRITZ-Box-Callmonitor".

After I removed the comment in line 5, my MagicMirror comes up again:

/MagicMirror/modules/MMM-FRITZ-Box-Callmonitor/translations/de.json

{
"title": "Eingehender Anruf",
"noCall": "Keine kürzlichen Anrufe.",

// keep the error messages short                         <-------- remove this line
"calllist_parse_error": "Anrufliste unlesbar.",
"phonebook_parse_error": "Telefonbuch unlesbar.",
"vcf_parse_error": "vCard unlesbar.",
"login_error": "Logindaten falsch?",
"network_error": "FRITZ!Box nicht erreichbar.",
"unknown_error": "Unbekannter Fehler."
}

/MagicMirror/modules/MMM-FRITZ-Box-Callmonitor/translations/en.json

{
"title": "Incoming Call",
"noCall": "No recent calls.",

// keep the error messages short                         <-------- remove this line
"calllist_parse_error": "Can't parse calllist.",
"phonebook_parse_error": "Can't parse phonebook.",
"vcf_parse_error": "Can't parse vCard.",
"login_error": "Login data wrong?",
"network_error": "Could not reach FRITZ!Box.",
"unknown_error": "Unknown error."
}

Hope it helps someone else.

PieBa commented 3 years ago

It seems the issue is known and will be fixed soon in the magic mirror basis: https://github.com/MichMich/MagicMirror/issues/2149

So I think, there needs nothing to be done here.