Skip to content

Type mismatch issue when submitting metrics with tags. #133

Closed
@jayshah123

Description

@jayshah123

I am seeing this warning/error when submitting metrics:

could not serialize Array<number> (TypeError: mismatch types '1731477130' and 'Array<number>')
could not serialize number (TypeError: unknown type 'number')

This seems to be coming from - https://github.com/DataDog/datadog-api-client-typescript/blob/b56725b4ac6154403442ed02fe511c27a960d000/packages/datadog-api-client-v1/models/ObjectSerializer.ts#L2494.

Debugger screenshot (breakpoint on above error message):
Screenshot 2024-11-13 at 11 27 38 AM

Is there any workaround I can try?
If this is expected behaviour, is there a way to supress these messages? I am using this lib to send metrics from a cli, where this stdout/stderr output affects the experience.

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