[raptor] The script for manually posting to Influx DB cannot handle the last blank line

RESOLVED WONTFIX

Status

RESOLVED WONTFIX
4 years ago
4 years ago

People

(Reporter: mlien, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

4 years ago
After finished raptor testing, the raptor.log will leave one blank line on the end of file.
If using manually posting script to post to Influx DB, it will show below error:
======================================
undefined:0


SyntaxError: Unexpected end of input
    at parse (native)
    at Array.map (native)
    at /gaia/import.js:10:6
    at fs.js:334:14
    at FSReqWrap.oncomplete (fs.js:95:15)
======================================
If removing this blank line, it can execute normally. Maybe the script has bug to deal with blank line.

Comment 2

4 years ago
As this "script" isn't pure JSON, it doesn't make sense to a pure JSON.parse on it. It will be up to whomever is writing scripts to ensure the data is unserialized correctly.
Status: NEW → RESOLVED
Last Resolved: 4 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.