platform
platform copied to clipboard
Duplicate key transactor exception
{
2025-05-16T09:25:10.964+04:00 message: 'failed to process sql',
2025-05-16T09:25:10.964+04:00 error: 'duplicate key value violates unique constraint "channel_pkey"',
2025-05-16T09:25:10.964+04:00 cause: PostgresError: duplicate key value violates unique constraint "channel_pkey"
2025-05-16T09:25:10.964+04:00 at ErrorResponse (/usr/src/app/bundle.js:102301:31)
2025-05-16T09:25:10.964+04:00 at handle (/usr/src/app/bundle.js:102058:11)
2025-05-16T09:25:10.964+04:00 at TLSSocket.data (/usr/src/app/bundle.js:101871:13)
2025-05-16T09:25:10.964+04:00 at TLSSocket.emit (node:events:518:28)
2025-05-16T09:25:10.964+04:00 at addChunk (node:internal/streams/readable:561:12)
2025-05-16T09:25:10.964+04:00 at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
2025-05-16T09:25:10.964+04:00 at Readable.push (node:internal/streams/readable:392:5)
2025-05-16T09:25:10.964+04:00 at TLSWrap.onStreamRead (node:internal/stream_base_commons:189:23)
2025-05-16T09:25:10.964+04:00 at TLSWrap.callbackTrampoline (node:internal/async_hooks:130:17) {
2025-05-16T09:25:10.964+04:00 severity_local: 'ERROR',
2025-05-16T09:25:10.964+04:00 severity: 'ERROR',
2025-05-16T09:25:10.964+04:00 code: '23505',
2025-05-16T09:25:10.964+04:00 detail: "Key (workspaceId, _id)=('bb793ec1-252e-4419-8998-7f220ababdfa', '1063758239270633474') already exists.",
2025-05-16T09:25:10.964+04:00 constraint_name: 'channel_pkey',
2025-05-16T09:25:10.964+04:00 file: 'errors.go',
2025-05-16T09:25:10.964+04:00 line: '125',
2025-05-16T09:25:10.964+04:00 routine: 'NewUniquenessConstraintViolationError'
2025-05-16T09:25:10.964+04:00 }
2025-05-16T09:25:10.964+04:00}
2025-05-16T09:25:10.965+04:00{"domain":"channel","err":{"code":"23505","constraint_name":"channel_pkey","detail":"Key (workspaceId, _id)=('bb793ec1-252e-4419-8998-7f220ababdfa', '1063758239270633474') already exists.","file":"errors.go","line":"125","message":"duplicate key value violates unique constraint \"channel_pkey\"","name":"PostgresError","routine":"NewUniquenessConstraintViolationError","severity":"ERROR","severity_local":"ERROR","stack":"PostgresError: duplicate key value violates unique constraint \"channel_pkey\"\n at ErrorResponse (/usr/src/app/bundle.js:102301:31)\n at handle (/usr/src/app/bundle.js:102058:11)\n at TLSSocket.data (/usr/src/app/bundle.js:101871:13)\n at TLSSocket.emit (node:events:518:28)\n at addChunk (node:internal/streams/readable:561:12)\n at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)\n at Readable.push (node:internal/streams/readable:392:5)\n at TLSWrap.onStreamRead (node:internal/stream_base_commons:189:23)\n at TLSWrap.callbackTrampoline (node:internal/async_hooks:130:17)"},"level":"error","message":"failed to upload","timestamp":"2025-05-16T05:25:10.965Z"}
2025-05-16T09:25:10.967+04:00{"err":{"code":"23505","constraint_name":"channel_pkey","detail":"Key (workspaceId, _id)=('bb793ec1-252e-4419-8998-7f220ababdfa', '1063758239270633474') already exists.","file":"errors.go","line":"125","message":"duplicate key value violates unique constraint \"channel_pkey\"","name":"PostgresError","routine":"NewUniquenessConstraintViolationError","severity":"ERROR","severity_local":"ERROR","stack":"PostgresError: duplicate key value violates unique constraint \"channel_pkey\"\n at ErrorResponse (/usr/src/app/bundle.js:102301:31)\n at handle (/usr/src/app/bundle.js:102058:11)\n at TLSSocket.data (/usr/src/app/bundle.js:101871:13)\n at TLSSocket.emit (node:events:518:28)\n at addChunk (node:internal/streams/readable:561:12)\n at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)\n at Readable.push (node:internal/streams/readable:392:5)\n at TLSWrap.onStreamRead (node:internal/stream_base_commons:189:23)\n at TLSWrap.callbackTrampoline (node:internal/async_hooks:130:17)"},"level":"error","message":"failed to tx","timestamp":"2025-05-16T05:25:10.967Z"}
2025-05-16T09:25:11.106+04:00
Connected to Huly®: UBERF-10626