"No Description" when calling for guild.channels.fetchActiveThreads()
Get "https://discord.com/api/v10/guilds/1334649246472732712/threads/active?": context deadline excee
...
This is when guild.channels.fetchActiveThreads())
tries to run and fails. I am guessing it might be way too big the request. I only want to have the channel ids & amount of the active threads, nothing else.17 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button![email protected]
node: v23.11.0
As a note, i am using my own discord proxy here
:Thonk: what is that url in the error, that doesn't look like it's coming from discord
which url
at the bottom of your error stack
^
i didn't realize it modified the url like that, huh
imagine discordproxy.local.blackwolfwoof.com to be discord.com
its a 1:1 proxy
I use it to monitor if my bots blow up and to handle ratelimits
-# https://github.com/germanoeich/nirn-proxy if you are interested
408 suggests a timeout
Honestly i haven't tried it without my proxy yet
that proxy has been identified as the cause of timeouts in other projects
oh no aaa, welp. Lemme skip it in my bot.js and come back after some testing (1-2d)
I really hope its not that because i like it. It does its job very well
Dunno if it is better but i now get these
basically the same moment the old errors hit
AbortError: The user aborted a request.
A request took longer than the specified timeout (15 seconds default), and was aborted to not lock up the request handler.
- This can be caused by an internal server error on Discord's side, or just a slow connection.
- In case of a slow connection, the timeout
option in RESTOptions can be increased to prevent future AbortErrors.15 seconds is wild though to query threads
thats way too long
is there any other way i could get all active threads?
Maybe by for example looking at the guild object and then asking each channel for threads? Will kinda suck as thats lots of api calls and shit
Ig imma double the timeout and see if that request really takes so long. I doubt it tbh but yea