カテゴリの作成を API で試みたところ、Internal Server Error のレスポンスが返されました。エラーログセクションを確認すると、カテゴリ作成を試みるたびに以下のエラーが繰り返し発生していることがわかります:
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 パラメータを省略してみましたが、状況は変わりませんでした。
他のオブジェクトの作成は問題なく行えています。
この問題の原因として考えられることは何か、ご存知ありませんか?