sir-lancebot icon indicating copy to clipboard operation
sir-lancebot copied to clipboard

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

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

Sentry Issue: SIR-LANCEBOT-8K

HTTPException: 400 Bad Request (error code: 50035): Invalid Form Body
In embeds: Embed size exceeds maximum size of 6000
(1 additional frame(s) were not displayed)
...
  File "bot/exts/utilities/wolfram.py", line 288, in wolfram_short_command
    await send_embed(ctx, message, color)
  File "bot/exts/utilities/wolfram.py", line 54, in send_embed
    await ctx.send(embed=embed, file=f)
  File "discord/ext/commands/context.py", line 841, 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 744, in request
    raise HTTPException(response, data)

Unhandled command error: 400 Bad Request (error code: 50035): Invalid Form Body
In embeds: Embed size exceeds maximum size of 6000

From the traceback, we got a 403 error from wolfram, and tried to send a html page through to discord, which was too big. We should try to catch more errors from the wolfram API.

sentry[bot] avatar Oct 02 '22 09:10 sentry[bot]