Skip to content

Undici HeadersTimeoutError: Headers Timeout Error #8629

Closed
@Ayilas

Description

@Ayilas

Which package is this bug report for?

rest v1.0.1

Issue description

I get this error on large audio file uploads (50mb - 100mb)

HeadersTimeoutError: Headers Timeout Error
undici\lib\client.js:894:26

When I manually increase the headersTimeout in the undici client code to 60 seconds, it works, but the default value of 30s is too low and causes the issue. Is there anyway to specify a custom headersTimeout when initializing the discord client ?

Package version

v14.3.0

Node.js version

v17.0.1

Operating system

Windows

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions