bot icon indicating copy to clipboard operation
bot copied to clipboard

HTTPException: 400 Bad Request (error code: 50035): Invalid Form Body

Open sentry[bot] opened this issue 3 years ago • 1 comments

Sentry Issue: BOT-366

HTTPException: 400 Bad Request (error code: 50035): Invalid Form Body
In embeds.0.title: Must be 256 or fewer in length.
(1 additional frame(s) were not displayed)
...
  File "discord/ext/commands/help.py", line 960, in command_callback
    return await self.send_error_message(string)
  File "bot/exts/info/help.py", line 273, in send_error_message
    await self.context.send(embed=embed)
  File "discord/ext/commands/context.py", line 698, in send
    return await super().send(
  File "discord/abc.py", line 1536, in send
    data = await state.http.send_message(channel.id, params=params)
  File "discord/http.py", line 501, in request
    raise HTTPException(response, data)

Error in task Task-743416 140057607774272!

sentry[bot] avatar Aug 17 '22 10:08 sentry[bot]

If the query for a help command is excessively long it will not fit in the title. We should just trim the query if it is too long image

wookie184 avatar Aug 17 '22 10:08 wookie184

i can fix this, assign me to it if this is still relevant

ddjerqq avatar Oct 04 '22 23:10 ddjerqq

i can fix this, assign me to it if this is still relevant

Hi, I've assigned you 👍

wookie184 avatar Oct 05 '22 17:10 wookie184