Skip to content

Event timestamp serialization from JSON #3108

@arend-melissant-tnt

Description

@arend-melissant-tnt

Package

Sentry

.NET Flavor

.NET

.NET Version

8.0

OS

Any (not platform specific)

SDK Version

4.0.0

Self-Hosted Sentry Version

No response

Steps to Reproduce

read envelope from incoming message (using sentry-cli send-event)
deserialize envelope using var envelope = await Envelope.DeserializeAsync(stream);

this will throw an exception: The requested operation requires an element of type 'String', but the target element has type 'Number'.

this is an the "timestamp" element of the event payload

Expected Result

timestamp should deserialize with either a string or number (per SDK)

Actual Result

Exception thrown

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    Done

    Status

    No status

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions