Skip to content

datetime error pass throw new Error("File format not supported!"); #483

@Zourvan

Description

@Zourvan

Describe the bug
I have date read from mongodb like these:
[ { timestamp: 1659052014, DateTime: 2022-07-28T23:46:54.732Z, open: 6751.64577992092, close: 5195.775137545757, high: 1524.0121578845155, low: 6562.21988608587, volume: 1947.899689556545 }, { timestamp: 1659052016, DateTime: 2022-07-28T23:46:56.732Z, open: 1356.56558520725, close: 5338.004939325953, high: 3838.3290561580384, low: 6306.352967310171, volume: 5595.6236089073855 }]

when I try to convert to Json use the toJSON with format : "row"
the error throw:
throw new Error("File format not supported!");
after remove Datetime from my data the error solved!!!
but if format : "column" everything's are OK

Expected behavior
throw new Error("File format not supported!");

Desktop (please complete the following information):

  • OS: windows 10
  • node js

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions