fix(gateway): handle Discord error 30032 gracefully on reconnect - #22757
Closed
itenev wants to merge 1 commit into
Closed
fix(gateway): handle Discord error 30032 gracefully on reconnect#22757itenev wants to merge 1 commit into
itenev wants to merge 1 commit into
Conversation
When Discord returns error 30032 (max application commands reached), skip the verbose stack trace on every reconnect. This is a configuration issue, not a transient failure. Instead of logging a full traceback each time the gateway reconnects, emit a single concise warning suggesting the user consolidate commands.
itenev
marked this pull request as ready for review
May 9, 2026 18:51
1 task
Collaborator
|
Closing in favor of #46078 (merged), which removes the error-30032 failure at its source rather than silencing the resulting log traceback. With the desired set bounded at registration, the 30032 sync rejection no longer occurs. Thanks for the report. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When Discord returns error 30032 (max application commands reached), skip the verbose stack trace on every reconnect. This is a configuration issue, not a transient failure.
Instead of logging a full traceback each time the gateway reconnects, emit a single concise warning suggesting the user consolidate commands.
What does this PR do?
This PR fixes excessive log noise during Discord gateway reconnections.
When a Discord application reaches the hard limit of 100 slash commands, the gateway attempts to sync commands on every reconnect and receives error code 30032 ("Maximum number of application commands reached").
Previously, this triggered a full warning log with a stack trace on every single reconnection, cluttering logs and potentially masking real issues. This PR detects error 30032 specifically and replaces the verbose stack trace with a single, concise warning message advising the user to consolidate their commands.
Related Issue
N/A
Type of Change
Changes Made
How to Test
Checklist
Code
Documentation & Housekeeping