Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Audio] Local play menu raises NotFound with timeout #6228

Closed
aikaterna opened this issue Aug 10, 2023 · 0 comments · Fixed by #6229
Closed

[Audio] Local play menu raises NotFound with timeout #6228

aikaterna opened this issue Aug 10, 2023 · 0 comments · Fixed by #6229
Assignees
Labels
Category: Cogs - Audio This is related to the Audio cog. Status: In Progress There's a PR open to deal with this, or an org member is working on this internally Type: Bug Unexpected behavior, result, or exception. In case of PRs, it is a fix for the foregoing.

Comments

@aikaterna
Copy link
Member

aikaterna commented Aug 10, 2023

What Red version are you using?

3.5.3

Cog name

Audio

Command name

local play

What did you expect to happen?

For the menus to be handled appropriately.

What actually happened?

[17:35:52] ERROR [asyncio] Task exception was never retrieved
future: <Task finished name='discord-ui-view-timeout-1e3e49d1f60611a8af46ca83d34360b7' coro=<SimpleMenu.on_timeout() done, defined at /Users/aikaterna/red38/lib/python3.8/site-packages/redbot/core/utils/views.py:195> exception=NotFound('404 Not Found (error code: 10008): Unknown Message')>
Traceback (most recent call last)
/Users/aikaterna/red38/lib/python3.8/site-packages/redbot/core/utils/views.py:203 in on_timeout
❱ 203 await self.message.edit(view=None)
/Users/aikaterna/red38/lib/python3.8/site-packages/discord/message.py:2275 in edit
❱ 2275 data = await self._state.http.edit_message(self.channel.id, self.id,
params=params)
/Users/aikaterna/red38/lib/python3.8/site-packages/discord/http.py:741 in request
❱ 741 raise NotFound(response, data)

NotFound: 404 Not Found (error code: 10008): Unknown Message
[17:35:53] ERROR [discord.ui.view] Ignoring exception in view <SimpleMenu timeout=30.0 children=8> for item <_GenericButton style=<ButtonStyle.secondary: 2> url=None disabled=False label=None emoji=<PartialEmoji animated=False name='1⃣' id=None> row=None>
Traceback (most recent call last)
/Users/aikaterna/red38/lib/python3.8/site-packages/discord/ui/view.py:427 in _scheduled_task
❱ 427 await item.callback(interaction)
/Users/aikaterna/red38/lib/python3.8/site-packages/redbot/core/utils/menus.py:55 in callback
❱ 55 await interaction.response.defer()
/Users/aikaterna/red38/lib/python3.8/site-packages/discord/interactions.py:661 in defer
❱ 661 await adapter.create_interaction_response(
/Users/aikaterna/red38/lib/python3.8/site-packages/discord/webhook/async_.py:219 in request
❱ 219 raise NotFound(response, data)
NotFound: 404 Not Found (error code: 10062): Unknown interaction

How can we reproduce this error?

Have a localtracks setup with a named folder with tracks inside of it
Use [p]local play
Push a number button to select a folder, or use the close button for a slightly different traceback
It displays Files Found with another button menu display for tracks inside that folder
Wait for 30 seconds and don't select a track
Receive traceback

Anything else?

No response

@aikaterna aikaterna added the Type: Bug Unexpected behavior, result, or exception. In case of PRs, it is a fix for the foregoing. label Aug 10, 2023
@github-actions github-actions bot added the Status: Needs Triage This has not been labeled or discussed for handling yet. label Aug 10, 2023
@aikaterna aikaterna added the Category: Cogs - Audio This is related to the Audio cog. label Aug 10, 2023
@Jackenmen Jackenmen added Status: Accepted We want this and removed Status: Needs Triage This has not been labeled or discussed for handling yet. labels Aug 10, 2023
@Jackenmen Jackenmen assigned Jackenmen and unassigned Jackenmen Aug 10, 2023
@Jackenmen Jackenmen added Status: In Progress There's a PR open to deal with this, or an org member is working on this internally and removed Status: Accepted We want this labels Aug 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category: Cogs - Audio This is related to the Audio cog. Status: In Progress There's a PR open to deal with this, or an org member is working on this internally Type: Bug Unexpected behavior, result, or exception. In case of PRs, it is a fix for the foregoing.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants