nwfsc-fram / OceanTS

Oceanographic data processing in Typescript using NodeJS and Apache Arrow
0 stars 3 forks source link

Parsing hex file sometimes fails on time parsing #30

Open ghost opened 5 years ago

ghost commented 5 years ago

currently unable to pin down why it fails. Sometimes a hex file fails when it's part of a larger processing job, but then when I run it individually, it parses just fine.

ghost commented 5 years ago

Error as follows

  throw new Error('String \'' + str + '\' could not be parsed as \'' + pattern + '\'');
        ^
Error: String '-2019-04-18-HH-28-55' could not be parsed as '-yyyy-MM-dd-hh-mm'
    at extractDateParts (C:\Todd.Hay\Code\OceanTS\node_modules\date-format\lib\index.js:114:9)
ghost commented 5 years ago

Appears to have been that I had an incorrectly named log file in the OceanTS\logs directory named:

app.-2019-04-18-HH-28-55.log

Once I removed that and the other log files that still had the HH tag in them, everything runs correctly.