Discord API is issuing a "404 not Found: Unknown interaction", because the provision function is lasting longer than 3 seconds.
2023-05-18 21:00:26,930 DEBUG:URL being requested: GET https://admin.googleapis.com/admin/directory/v1/users?query=custom.discordId%[redacted]&customer=my_customer&projection=full&viewType=admin_view&alt=json
2023-05-18 21:00:26,931 DEBUG:Making request: POST https://oauth2.googleapis.com/token
{'kind': 'admin#directory#user', 'id': '[redacted] [...]
2023-05-18 21:00:27,779 DEBUG:URL being requested: POST https://admin.googleapis.com/admin/directory/v1/users?alt=json
2023-05-18 21:00:27,780 DEBUG:Making request: POST https://oauth2.googleapis.com/token
2023-05-18 21:00:28,663 DEBUG:URL being requested: POST https://admin.googleapis.com/admin/directory/v1/groups/technique%40lyon-esport.fr/members?alt=json
2023-05-18 21:00:35,009 DEBUG:URL being requested: PUT https://gmail.googleapis.com/gmail/v1/users/drum.test2%40lyon-esport.fr/settings/sendAs/drum.test2%40lyon-esport.fr?alt=json
2023-05-18 21:00:35,010 DEBUG:Making request: POST https://oauth2.googleapis.com/token
2023-05-18 21:00:35 ERROR discord.client Ignoring exception in on_command_error
Traceback (most recent call last):
File "/home/drumslayer/.cache/pypoetry/virtualenvs/les-louisdelatech-Dg2cTfTc-py3.11/lib/python3.11/site-packages/discord/client.py", line 441, in _run_event
await coro(*args, **kwargs)
File "/home/drumslayer/git/lyon-esport/louisdelatech/les_louisdelatech/bot.py", line 90, in on_command_error
await ctx.send(f"Error while executing command => {error.__cause__}")
File "/home/drumslayer/.cache/pypoetry/virtualenvs/les-louisdelatech-Dg2cTfTc-py3.11/lib/python3.11/site-packages/discord/ext/commands/context.py", line 884, in send
await self.interaction.response.send_message(**kwargs)
File "/home/drumslayer/.cache/pypoetry/virtualenvs/les-louisdelatech-Dg2cTfTc-py3.11/lib/python3.11/site-packages/discord/interactions.py", line 778, in send_message
await adapter.create_interaction_response(
File "/home/drumslayer/.cache/pypoetry/virtualenvs/les-louisdelatech-Dg2cTfTc-py3.11/lib/python3.11/site-packages/discord/webhook/async_.py", line 219, in request
raise NotFound(response, data)
discord.errors.NotFound: 404 Not Found (error code: 10062): Unknown interaction
2023-05-18 21:00:35,313 ERROR:Ignoring exception in on_command_error
Traceback (most recent call last):
File "/home/drumslayer/.cache/pypoetry/virtualenvs/les-louisdelatech-Dg2cTfTc-py3.11/lib/python3.11/site-packages/discord/client.py", line 441, in _run_event
await coro(*args, **kwargs)
File "/home/drumslayer/git/lyon-esport/louisdelatech/les_louisdelatech/bot.py", line 90, in on_command_error
await ctx.send(f"Error while executing command => {error.__cause__}")
File "/home/drumslayer/.cache/pypoetry/virtualenvs/les-louisdelatech-Dg2cTfTc-py3.11/lib/python3.11/site-packages/discord/ext/commands/context.py", line 884, in send
await self.interaction.response.send_message(**kwargs)
File "/home/drumslayer/.cache/pypoetry/virtualenvs/les-louisdelatech-Dg2cTfTc-py3.11/lib/python3.11/site-packages/discord/interactions.py", line 778, in send_message
await adapter.create_interaction_response(
File "/home/drumslayer/.cache/pypoetry/virtualenvs/les-louisdelatech-Dg2cTfTc-py3.11/lib/python3.11/site-packages/discord/webhook/async_.py", line 219, in request
raise NotFound(response, data)
discord.errors.NotFound: 404 Not Found (error code: 10062): Unknown interaction