Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undici HeadersTimeoutError: Headers Timeout Error #8629

Closed
FractalH opened this issue Sep 16, 2022 · 0 comments · Fixed by #8679
Closed

Undici HeadersTimeoutError: Headers Timeout Error #8629

FractalH opened this issue Sep 16, 2022 · 0 comments · Fixed by #8679

Comments

@FractalH
Copy link

FractalH commented Sep 16, 2022

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants