API를 통해 카테고리를 생성하려고 하는데 Internal Server Error 응답을 받고 있습니다. 에러 로그(Error Logs) 섹션을 보면 카테고리를 생성하려고 할 때 다음과 같은 에러가 반복적으로 발생합니다:
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/
꽤 명백해 보이죠? 그런데 제 요청은 다음과 같습니다:
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"
}
]
skip_validations 매개변수를 생략해 보았지만 변화가 없습니다.
다른 객체들은 정상적으로 생성할 수 있습니다.
이 문제를 일으키는 원인이 무엇일지 아이디어가 있을까요?