Closed montanaflynn closed 1 year ago
A timeout occurs when the message is not sent within the request's timeout, which is set within the configuration. The timeout represents the amount of time a request will wait for a response.
You can adjust the bot's timeout from the Client.Config.Request.Timeout
which is defined at Request
. If you would like to ensure that requests occur within a certain time, but are always retried, you can adjust the amount of retries per request by setting the Client.Config.Request.Retries
.
bot.Config.Request.Timeout = time.Second * 15
For more information, check out the Client
example: Request
.
@montanaflynn Please let me know if this information solved your problem. If you need more help, feel free to ask.
Note For Maintainer
discord.js
sets the default timeout to 15 seconds. Consider changing the default timeout, adding the timeout error to a FAQ , or creating a .TimeoutError
which describes the issue
Update: fasthttp.ErrTimeout
is returned from timed out calls.
This issue will be solved by adding it to either an FAQ or Request concept documentation.
Thanks @switchupcb, this has indeed solved the problem!
I'm getting a lot of these errors, I don't have any problem with
discord.js
running on the same network, although maybe they are doing retries?