Sleipnir
03/21/2022, 5:19 PMJoey
03/21/2022, 5:19 PMSleipnir
03/21/2022, 5:20 PMJoey
03/21/2022, 5:20 PMVilsol
03/21/2022, 5:39 PMVilsol
03/21/2022, 5:39 PMJake
03/21/2022, 5:40 PMJake
03/21/2022, 5:41 PMJake
03/21/2022, 5:41 PMVilsol
03/21/2022, 5:42 PMJake
03/21/2022, 5:43 PMVilsol
03/21/2022, 5:44 PMJake
03/21/2022, 5:44 PMVilsol
03/21/2022, 5:44 PMJake
03/21/2022, 5:45 PMVilsol
03/21/2022, 5:46 PMnight
03/21/2022, 5:46 PMJake
03/21/2022, 5:47 PMJake
03/21/2022, 5:47 PMwilliamdclt
03/22/2022, 2:19 PMCould not check permissions from the SpiceDB service. Error: 2 UNKNOWN: error dispatching request: unable to read namespace config: context canceled
at Object.callErrorFromStatus (/home/node/app/node_modules/@grpc/grpc-js/build/src/call.js:31:26)
at Object.onReceiveStatus (/home/node/app/node_modules/@grpc/grpc-js/build/src/client.js:180:52)
at Object.onReceiveStatus (/home/node/app/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:365:141)
at Object.onReceiveStatus (/home/node/app/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:328:181)
at /home/node/app/node_modules/@grpc/grpc-js/build/src/call-stream.js:182:78
at processTicksAndRejections (internal/process/task_queues.js:77:11) {
code: 2,
details: 'error dispatching request: unable to read namespace config: context canceled',
metadata: Metadata {
internalRepr: Map(2) {
'io.spicedb.respmeta.dispatchedoperationscount' => [Array],
'io.spicedb.respmeta.cachedoperationscount' => [Array]
},
options: {}
}
}
That seems like an internal error, either it's a bug or it should surface a more readable error for the developer? "namespace config" and "context canceled" aren't concepts I've encountered in the docsJoey
03/22/2022, 2:21 PMwilliamdclt
03/22/2022, 2:22 PMwilliamdclt
03/22/2022, 2:36 PMJoey
03/22/2022, 2:41 PMromil
03/22/2022, 4:07 PMwilliamdclt
03/22/2022, 4:10 PMJoey
03/22/2022, 4:22 PMJoey
03/22/2022, 4:22 PMwilliamdclt
03/22/2022, 4:44 PMwilliamdclt
03/22/2022, 4:47 PMunable to write tuples: ERROR: duplicate key value violates unique constraint \"uq_relation_tuple_living\" (SQLSTATE 23505)
It happens from time to time when I'm writing relationships 1-by-1, and it happens systematically when I'm writing relationships in batches of ~4000. It happens when I have only 1 instance of SpiceDB and only 1 process calling SpiceDB, without parallelism, so it doesn't seem like it could be a race condition