Skip to content

fileCommandJson sometimes receives JSON lines that it can't parse. #455

Description

@strongpauly

If fileCommandJson receives something like this in stdout:

{
  "activationType" : "timeout",
  "activationAt" : "2025-06-27 09:57:55 +0100",
  "deliveredAt" : "2025-06-27 09:57:45 +0100"
}{
  "activationType" : "timeout",
  "activationAt" : "2025-06-27 09:57:55 +0100",
  "deliveredAt" : "2025-06-27 09:57:45 +0100"
}

It will throw an error trying to parse it:

Uncaught SyntaxError: Unexpected non-whitespace character after JSON at position 129 (line 5 column 2)
    at JSON.parse (<anonymous>)
    at <anonymous>:1:6

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions