#hikari.errors.BadRequestError: Bad Request 400: (50035) 'Invalid Form Body'

1 messages · Page 1 of 1 (latest)

rose mist
#
{
 "content": {
    "_errors": [
       {
         "code": "BASE_TYPE_MAX_LENGTH",
        "message": "Must be 2000 or fewer in length."
     }
  ]
  }
}

Would there by any other reason this error shows up other than the bot sending a message greater than 2k characters?

smoky hollow
#

why do you ask? think

rose mist
smoky hollow
#

can you give an example?

rose mist
#

here from just now:

#

the response is supposed to trigger when the message starts with "Limbless,"

#

I checked just now from my logs on Azure, and I get the same error

#

Maybe its the frequency of the responses?

smoky hollow
#

Well do you actually have a record of the message it tried to send?

upbeat birch
#

are you really trusting a chatbot to give you accurate info?

smoky hollow
#

^

#

it could just be spitting random numbers at you

rose mist
#

true true, will look into that

wide urchin
hazy junco
#

yeah absolutely do not trust gpt to tell you how long its message is. the one in your screenshot clocks in at 358 characters, definitely not 1017

upbeat birch
#

lul

rose mist
smoky hollow
#

but if you can’t verify that…

hazy junco
#

gpt more than likely does not know how long its message is

nimble turtle
#

why would you rely on AI to tell you what len() will do

smoky hollow
#

because the message didn’t send so that gave no idea what it was