creat1vv
@creat1vv
nodejs developer

Ошибка при взаимодействии с кнопками, из за чего может быть?

Когда первый раз нажимаешь на кнопку, в консоли выдает вот это:

Ignoring exception in view <Market timeout=180 children=4> for item <Button style=<ButtonStyle.primary: 1> url=None disabled=False label='Nitro Full' emoji=None row=None>:
Traceback (most recent call last):
  File "C:\python\lib\site-packages\disnake\interactions\base.py", line 827, in send_message
    await adapter.create_interaction_response(
  File "C:\python\lib\site-packages\disnake\webhook\async_.py", line 214, in request
    raise NotFound(response, data)
disnake.errors.NotFound: 404 Not Found (error code: 10062): Unknown interaction

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "C:\python\lib\site-packages\disnake\ui\view.py", line 370, in _scheduled_task
    await item.callback(interaction)
  File "C:\Users\Creativchak\Desktop\discord-bots\MikoBot\cogs\users.py", line 40, in nitrofull
    await interaction.response.send_message(f"Ваша заявка на нитро создана. Канал с администрацией: <#{channel.id}>", ephemeral=True)
  File "C:\python\lib\site-packages\disnake\interactions\base.py", line 837, in send_message
    raise InteractionTimedOut(self._parent) from e
disnake.errors.InteractionTimedOut: Interaction took more than 3 seconds to be responded to. Please defer it using "interaction.response.defer" on the start of your command. Later you may send a response by editing the deferred message using "interaction.edit_original_message"
Note: This might also be caused by a misconfiguration in the components make sure you do not respond twice in case this is a component.
  • Вопрос задан
  • 1334 просмотра
Пригласить эксперта
Ответы на вопрос 1
fenrir1121
@fenrir1121
Начни с документации
Пожалуйста начинайте с перевода ошибок там все указано
disnake.errors.InteractionTimedOut: Interaction took more than 3 seconds to be responded to. Please defer it using "interaction.response.defer" on the start of your command. Later you may send a response by editing the deferred message using "interaction.edit_original_message"
Note: This might also be caused by a misconfiguration in the components make sure you do not respond twice in case this is a component.


У вас тайм-аут из-за того что в течение 3 секунд не был дан ответ, в тексте ошибки указано что нужно делать в этом случае
Ответ написан
Комментировать
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы