msupply-foundation / open-msupply

Open mSupply represents our most recent advancement in the Logistics Management Information System (LMIS), expanding on more than two decades of development inherited from the well-established legacy of the original mSupply.
https://msupply.foundation/open-msupply/
Other
21 stars 13 forks source link

Failed to parse JSON file "index.ts" #4856

Open jmbrunskill opened 1 month ago

jmbrunskill commented 1 month ago

What went wrong? 😲

[2024-09-24T05:38:08Z ERROR service::localisations] Failed to parse JSON file "index.ts": Error("expected value", line: 1, column: 1)
[2024-09-24T05:38:09Z ERROR service::localisations] Failed to parse JSON file "index.ts": Error("expected value", line: 1, column: 1)

Expected behaviour 🤔

No errors should be created

Agreed Solution

SHould check the file ends with .json before trying to parse it?

How to Reproduce 🔨

Steps to reproduce the behaviour:

  1. run tests with util::init_logger(util::LogLevel::Warn);

    Your environment 🌱

lache-melvin commented 1 month ago

Daily triage: setting low priority... not blocking anything, but would be nice to clean up 😁