SequentialHandler.runRequest throws a TimeoutOverflowWarning
See original GitHub issueWhich package is this bug report for?
rest
Issue description
Discord.JS seems to throw a TimeoutOverflowWarning whenever calling REST.request directly.
Node version: 16.17.0 Version: @discordjs/rest@1.3.0
(node:28) TimeoutOverflowWarning: 18446744073709548000 does not fit into a 32-bit signed integer.
Timeout duration was set to 1.
at new Timeout (node:internal/timers:171:15)
at node:timers/promises:81:21
at new Promise (<anonymous>)
at Object.setTimeout (node:timers/promises:80:15)
at SequentialHandler.runRequest (/app/node_modules/@discordjs/rest/dist/lib/handlers/SequentialHandler.cjs:128:26)
at async SequentialHandler.queueRequest (/app/node_modules/@discordjs/rest/dist/lib/handlers/SequentialHandler.cjs:99:14)
at async REST.request (/app/node_modules/@discordjs/rest/dist/lib/REST.cjs:52:22) <-- we call this
at async sendDirectMessage (/app/src/utils/discordRestExtensions.js:6:21)
at async ReminderService.pollForReminders (/app/src/services/reminderService.js:50:11)
Code sample
No response
Package version
Node.js version
16.17.0
Operating system
Ubuntu
Priority this issue should have
Medium (should be fixed soon)
Which partials do you have configured?
Not applicable (subpackage bug)
Which gateway intents are you subscribing to?
Not applicable (subpackage bug)
I have tested this issue on a development release
No response
Issue Analytics
- State:
- Created 10 months ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
TimeoutOverflowWarning Error and Fatal error with NodeJS ...
This was a Discord bug that is already resolved. More details here. It is no longer an issue.
Read more >Logs crowded with TimeoutOverflowWarning messages #1685
A lot of errors in console like: "(node:311712) TimeoutOverflowWarning: 678934156894683900 does not fit into a 32-bit signed integer."
Read more >fix(EmbedBuilder): allow passing `Date`s to the constructor object ...
discord.js SequentialHandler.runRequest throws a TimeoutOverflowWarning 5 closed 🗓️ 2 weeks ago. discord.js fix: support `discordapp.com` webhook ...
Read more >Issues - discord.js - discord.js - Repos
SequentialHandler.runRequest throws a TimeoutOverflowWarning. #8830 opened 21 days ago by velddev ... deferReply() throws 404 Unknown Interaction.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Turns out this is indeed a Discord issue. I’ll be closing this as there’s nothing we can do library-side. Feel free to join the above server & thread for updates. In addition, the new implementation was disabled, so restart (if applicable):^1
This is a high/critical priority issue IMO. Not sure what is causing it, but when it happens it spams my console with this error, logging the error at a rate of 4 GB per minute and shoots my instance CPU usage up 5x. It continues to spam until the bot is restarted.
This first started last night around 8pm ET. I restarted the bot and it has been fine until about an hour ago when the issue started once again.