Estou tentando criar uma categoria via API e estou recebendo uma resposta de Internal Server Error. Se eu verificar na seção Error Logs, posso ver o seguinte erro ocorrendo repetidamente quando tento criar a categoria:
ActiveRecord::ValueTooLong (PG::StringDataRightTruncation: ERROR: value too long for type character varying(6) ) /var/www/discourse/vendor/bundle/ruby/2.6.0/gems/rack-mini-profiler-1.1.6/lib/patches/
Parece bastante óbvio, não? Exceto que minha solicitação é:
Method: POST, RequestUri: 'https://xxx/categories', Version: 1.1, Content: System.Net.Http.MultipartFormDataContent, Headers:
{
Api-Key: xxx
Api-Username: xxx
Accept: application/json
User-Agent: lb-legacy-content-migrator
Content-Type: multipart/form-data; boundary="f86b1fe9-5a87-4794-b949-8c0fb1347cb5"
}:[
{
"Key": "name",
"Value": "Features"
},
{
"Key": "color",
"Value": "#ee00da"
},
{
"Key": "text_color",
"Value": "#000000"
},
{
"Key": "skip_validations",
"Value": "true"
}
]
Tentei omitir o parâmetro skip_validations, mas sem mudanças.
Conseguimos criar outros objetos sem problemas.
Alguma ideia do que pode estar causando isso?