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

[p]set api errors with long service name and modal used #6478

Open
aikaterna opened this issue Nov 23, 2024 · 0 comments
Open

[p]set api errors with long service name and modal used #6478

aikaterna opened this issue Nov 23, 2024 · 0 comments
Assignees
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.

Comments

@aikaterna
Copy link
Member

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?

  1. Use [p]set api veryextremelylongservicenameoverfourtyfivecharacters
  2. Push the Set API Token button.
  3. 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 Nov 23, 2024
@github-actions github-actions bot added the Status: Needs Triage This has not been labeled or discussed for handling yet. label Nov 23, 2024
@Kowlin Kowlin self-assigned this Nov 23, 2024
@Flame442 Flame442 added Status: In Progress There's a PR open to deal with this, or an org member is working on this internally Category: Core - Bot Commands This is related to core commands (Core and CogManagerUI cog classes). and removed Status: Needs Triage This has not been labeled or discussed for handling yet. labels Nov 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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.
Projects
None yet
Development

No branches or pull requests

3 participants