Skip to content

Videos with broken timestamp can no longer be sent in messages #8549

Description

@Cynosphere

Description

Videos with broken timestamp can no longer be sent in messages due to a new duration_secs field that is only a 32bit integer

Steps to Reproduce

Send a message with a video that has broken timestamp

I made a broken timestamp version of the Discord logo spinner as an example for this issue: broken.zip

Expected Behavior

The video uploads

Current Behavior

{
    "message": "Invalid Form Body",
    "code": 50035,
    "errors": {
        "attachments": {
            "0": {
                "duration_secs": {
                    "_errors": [
                        {
                            "code": "NUMBER_TYPE_MAX",
                            "message": "float value should be less than or equal to 2147483647."
                        }
                    ]
                }
            }
        }
    }
}

Screenshots/Videos

No response

Client and System Information

Canary 594086 (2919a71)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions