You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a paginator update fails inside callback, the paginator can enter an un-recoverable state
Reproduction Steps
Create a paginator with 2 pages
Click the right arrow/next page button
The interaction must fail, you can trigger this by adding a debug breakpoint or a sleep function inside Paginator.goto_page, or by throttling your network connection
Observe the error inside the console: discord.errors.NotFound: 404 Not Found (error code: 10062): Unknown interaction
Press the same button again
Observe this error in your console:
page = self.pages[page_number]
~~~~~~~~~~^^^^^^^^^^^^^
IndexError: list index out of range
Summary
If a paginator update fails inside callback, the paginator can enter an un-recoverable state
Reproduction Steps
Paginator.goto_page
, or by throttling your network connectiondiscord.errors.NotFound: 404 Not Found (error code: 10062): Unknown interaction
Minimal Reproducible Code
Expected Results
The paginator should fallback to its previous state in the event of a failure, so the second update should be a retry of the first.
Actual Results
There is a silent failure,
current_page
is updated but the paginator is not.Intents
Intents.default()
System Information
Checklist
Additional Context
No response
The text was updated successfully, but these errors were encountered: