Advertisement
fedorm

Untitled

Mar 22nd, 2019
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.25 KB | None | 0 0
  1. {
  2.     "timestamp": "2019-03-22T14:54:06.350+0000",
  3.     "path": "/segments/segments/create_segment",
  4.     "status": 500,
  5.     "error": "Internal Server Error",
  6.     "message": "StatementCallback; SQL [SELECT * FROM segments.HTTP_POST_create_segment('{\"Postman-Token\":\"b38d1bad-cd10-44a5-beac-c3c6b26a7c29\",\"Accept\":\"*/*\",\"accept-encoding\":\"gzip, deflate\",\"User-Agent\":\"PostmanRuntime/7.6.1\",\"cache-control\":\"no-cache\",\"content-length\":\"417\",\"Content-Type\":\"application/json\",\"Host\":\"localhost:8090\"}','{\"body\":{\"id\":\"周有七天周有七天周七天周有七天周有七天周有七天周有七天周有七天周有七天周有七天周有七天周有七天周有七天周有七天周有七天周\",\"name\":\"周有七天周有七天周有七天周有天\",\"description\":\"周有七天周有七天周有周有七天周有七天周有七天\",\"author\":\"周有七天周有七天周有七天周有七天周有七天\"}}')]; ERROR: value too long for type character varying(15)\n  Where: SQL statement \"INSERT INTO segments.segments (id, name, description, date_created, author) VALUES (\n\t\t((params->'body')->>'id')::VARCHAR,\n\t\t(params->'body')->>'name',\n\t\t(params->'body')->>'description',\n\t\tCURRENT_TIMESTAMP,\n\t\t(params->'body')->>'author'\n\t) ON CONFLICT (id) DO\n\tUPDATE SET\n\t    name = (params->'body')->>'name',\n\t    description = (params->'body')->>'description',\n\t    date_changed = CURRENT_TIMESTAMP,\n\t    author = (params->'body')->>'author'\"\nPL/pgSQL function segments.http_post_create_segment(jsonb,json) line 4 at SQL statement; nested exception is org.postgresql.util.PSQLException: ERROR: value too long for type character varying(15)\n  Where: SQL statement \"INSERT INTO segments.segments (id, name, description, date_created, author) VALUES (\n\t\t((params->'body')->>'id')::VARCHAR,\n\t\t(params->'body')->>'name',\n\t\t(params->'body')->>'description',\n\t\tCURRENT_TIMESTAMP,\n\t\t(params->'body')->>'author'\n\t) ON CONFLICT (id) DO\n\tUPDATE SET\n\t    name = (params->'body')->>'name',\n\t    description = (params->'body')->>'description',\n\t    date_changed = CURRENT_TIMESTAMP,\n\t    author = (params->'body')->>'author'\"\nPL/pgSQL function segments.http_post_create_segment(jsonb,json) line 4 at SQL statement"
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement