[p]set api errors with long service name and modal used #6478
Labels
Category: Core - Bot Commands
This is related to core commands (Core and CogManagerUI cog classes).
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.
What Red version are you using?
3.5.13
Cog name
Core
Command name
set api veryextremelylongservicenameoverfourtyfivecharacters
What did you expect to happen?
I expected the modal to handle the input appropriately.
What actually happened?
[16:48:39] ERROR [discord.ui.view] Ignoring exception in view for item <Button style=<ButtonStyle.secondary: 2> url=None disabled=False label='Set API token' emoji=None row=None sku_id=None>
│ C:\Users\user\redenv\Lib\site-packages\discord\ui\view.py:430 in scheduled_task
│ > 430 await item.callback(interaction)
│ C:\Users\user\redenv\Lib\site-packages\redbot\core\utils\views.py:482 in auth_button
│ > 482 return await interaction.response.send_modal(
│ C:\Users\user\redenv\Lib\site-packages\discord\interactions.py:1041 in send_modal
│ > 1041 await adapter.create_interaction_response(
│ C:\Users\user\redenv\Lib\site-packages\discord\webhook\async.py:223 in request
│ > 223 raise HTTPException(response, data)
HTTPException: 400 Bad Request (error code: 50035): Invalid Form Body
In data.title: Must be 45 or fewer in length.
In data.components.0.components.0.label: Must be 45 or fewer in length.
How can we reproduce this error?
Anything else?
No response
The text was updated successfully, but these errors were encountered: