Posted this in the Skylark 4.4 release topic but wanted to make it’s own.
The messages log in /var/logs on my installation is getting hammered with messages like:
Mar 6 03:48:39 outernet user.notice root: 2017-03-06T03:48:39.894Z httpCall exception SyntaxError: Unexpected token % in JSON at position 1 SyntaxError: Unexpected token % in JSON at position 1
Mar 6 03:48:39 outernet user.notice root: at Object.parse (native)
Mar 6 03:48:39 outernet user.notice root: at IncomingMessage. (/usr/lib/node_modules/ui2/server/http.js:324:27)
I added a bit of logging to see what was being sent to function httpCall and most of the messages that are causing the exceptions are trying to be parsed as JSON with var args = JSON.parse(Buffer.concat(body)); but the body does not appear to be JSON. Most contents being sent through that are causing the messages are like the following:
These are causing the bulk of the exceptions. Other, normal messages that are JSON do work of course, like:
when opening file manager in the GUI. Or the username and password when logging into the GUI.
Do any of the non-json messages look familiar at all?
I know it’s just a logging issue, but for whatever reason, it is nagging at me.
Maybe just take out the logging of the errors for now if they don’t impact functionality?