-
-
Notifications
You must be signed in to change notification settings - Fork 92
Corrupted Telemetry file uncaught exception #648
Copy link
Copy link
Open
Labels
InvestigatingWhat the ... !?What the ... !?Workaround AvailableYup, probably a bug but there is a temporary workaroundYup, probably a bug but there is a temporary workaroundbugIt's life Jim but not as we know it!It's life Jim but not as we know it!
Description
Activity
Metadata
Metadata
Assignees
Labels
InvestigatingWhat the ... !?What the ... !?Workaround AvailableYup, probably a bug but there is a temporary workaroundYup, probably a bug but there is a temporary workaroundbugIt's life Jim but not as we know it!It's life Jim but not as we know it!
Current Behavior
Hi!
When the telemetry file gets corrupted (in my case hard disk was full), Node-Red is prevented from starting with error: [error] Error: Could not read or parse telemetry file '/data/uibuilder/.config/telemetry.json'. Unexpected end of JSON input [uiblib:parseTelemetryFile]
at Object.parseTelemetryFile (/usr/src/node-red/node_modules/node-red-contrib-uibuilder/nodes/libs/uiblib.cjs:769:23)
at async EventEmitter. (/usr/src/node-red/node_modules/node-red-contrib-uibuilder/nodes/uib-runtime-plugin.js:365:9)
Expected Behavior
A corrupted telemetry json file should not prevent Node-Red from starting up, it should replace the corrupted file with a new one.
Steps To Reproduce
Modify the telemetry dile so it doesnt parse as clean json
Try to start Node-Red
Example Node-RED flow
Environment
How is Node-RED installed? (globally/locally? admin/user?):
How/where is UIBUILDER installed (palette-manager/globally/locally? Which folder?)
Have you changed any of the
uibuildersettings in yoursettings.jsfile?