Discord error 10062 means “Unknown interaction.” Bot developers may encounter it while responding to a slash command, button or other interaction. A user may only see a command fail; changing the Discord desktop cache will not repair a bot’s response handler.
The first things to inspect are the response timeline and whether the request uses the correct interaction ID and token. Timing is important, but the code alone does not prove that every failure was caused by a slow database.
Understand the acknowledgement deadline
Discord requires an initial response within three seconds. Missing that deadline invalidates the interaction token. A valid initial acknowledgement enables follow-ups within the token’s 15-minute lifetime. Deferring is an acknowledgement that lets supported interactions receive their result later; it does not create unlimited processing time.
Measure the path before the first response
- Log when your handler receives the event.
- Log when it attempts the initial reply or defer, and when Discord answers.
- Identify work performed between those points: database calls, external APIs, queue waits or a blocked event loop.
- Compare a failing run with a successful run of the same command.
Use monotonic elapsed timing where available and a correlation identifier rather than recording secret tokens. If a command fetches a large report before acknowledging, that is a clear place to investigate. A fast local test is not enough if production workers sit behind a busy queue.
Acknowledge first when the operation may take time
Choose a reply or defer that is valid for that interaction type before starting lengthy work. After a defer, complete the result with the appropriate edit or follow-up flow. Do not respond with another initial acknowledgement. Select the actual SDK methods from the documentation for the library version you run.
For example, a reporting command can acknowledge that its report is being prepared, perform the query, and then update the result. Keep business operations separate from acknowledgement logic so a slow report does not prevent the bot from responding at all.
Check identity and routing if the response was prompt
Trace the exact event through the handler and outgoing request. Check for a stale interaction object saved from an earlier click, mixed test and production configuration, or a worker reading the wrong queued job. Treat IDs and tokens as a matching pair from the current event. Never publish an interaction token in an issue report.
Also check whether multiple workers or listeners are handling the same event. An acknowledgement collision can produce a different code, 40060, and logs that omit earlier requests can make these failures look alike. Preserve the actual response body instead of grouping every interaction failure under one label.
Test without repeating real transactions
Use a harmless command in a test environment, including a deliberately slow operation, and verify one acknowledgement and one final result. A fresh interaction is useful for testing; endlessly resubmitting a failed command that creates orders or changes roles risks duplicate business actions. Users should report the command, time and visible error to the bot owner rather than retrying it repeatedly.
Sources and scope
Checked against Discord’s official documentation on 27 November 2026. Diagnostic examples are suggested checks, not claims of a reproduced Discord incident. Interface labels and SDK details can change.
For more troubleshooting and app help, browse our Discord guides.