hkg
hkg
DTDrizzle Team
Created by hkg on 7/14/2024 in #help
`drizzle-kit push` trying to remove drizzle's own sequence causing errors
BUMP
2 replies
DTDrizzle Team
Created by hkg on 6/2/2024 in #help
Drizzle-kit SSL Error
@nk, nvm, I've struggled with the issue for two days but couldn't notice that I was editing test/drizzle.config.ts and not drizle.config.ts 😅
6 replies
DTDrizzle Team
Created by hkg on 6/2/2024 in #help
Drizzle-kit SSL Error
I've tried false, "disabled" and similar flags, but to no avail.
6 replies
DTDrizzle Team
Created by hkg on 6/2/2024 in #help
Drizzle-kit SSL Error
.
6 replies
DTDrizzle Team
Created by hkg on 6/2/2024 in #help
Drizzle-kit SSL Error
My database is hosted as a service in a docker container
6 replies
DTDrizzle Team
Created by hkg on 4/22/2024 in #help
DrizzleError: Rollback is being rethrown unexpectedly
Should I migrate this to github issues?
4 replies
DTDrizzle Team
Created by Bot Dev on 4/21/2024 in #help
Naming Migrations
yes, it's missing - coming to the nearest release of drizzle-kit (https://discord.com/channels/1043890932593987624/1124768693549797416/1231991668270698627)
4 replies
DTDrizzle Team
Created by hkg on 4/22/2024 in #help
DrizzleError: Rollback is being rethrown unexpectedly
Hm, wrapping transaction inside of try/catch makes it work, but its dirty
4 replies
DTDrizzle Team
Created by hkg on 4/22/2024 in #help
DrizzleError: Rollback is being rethrown unexpectedly
This is what I'm getting from my top-level handler.
top level error handler 1 | import { entityKind } from "./entity.js";
2 | class DrizzleError extends Error {
3 | static [entityKind] = "DrizzleError";
4 | constructor({ message, cause }) {
5 | super(message);
^
DrizzleError: Rollback
at new DrizzleError (/workspaces/hashira/packages/db/node_modules/drizzle-orm/errors.js:5:5)
at new TransactionRollbackError (/workspaces/hashira/packages/db/node_modules/drizzle-orm/errors.js:13:5)
at rollback (/workspaces/hashira/packages/db/node_modules/drizzle-orm/pg-core/session.js:55:11)
at /workspaces/hashira/apps/bot/src/moderation/mutes.ts:156:23
at /workspaces/hashira/apps/bot/src/moderation/mutes.ts:155:56
at /workspaces/hashira/packages/db/node_modules/drizzle-orm/postgres-js/session.js:97:37
at /workspaces/hashira/node_modules/postgres/src/index.js:260:21
at new Promise (:1:21)
at /workspaces/hashira/node_modules/postgres/src/index.js:259:24
at scope (/workspaces/hashira/node_modules/postgres/src/index.js:250:29)
at /workspaces/hashira/node_modules/postgres/src/index.js:243:9
top level error handler 1 | import { entityKind } from "./entity.js";
2 | class DrizzleError extends Error {
3 | static [entityKind] = "DrizzleError";
4 | constructor({ message, cause }) {
5 | super(message);
^
DrizzleError: Rollback
at new DrizzleError (/workspaces/hashira/packages/db/node_modules/drizzle-orm/errors.js:5:5)
at new TransactionRollbackError (/workspaces/hashira/packages/db/node_modules/drizzle-orm/errors.js:13:5)
at rollback (/workspaces/hashira/packages/db/node_modules/drizzle-orm/pg-core/session.js:55:11)
at /workspaces/hashira/apps/bot/src/moderation/mutes.ts:156:23
at /workspaces/hashira/apps/bot/src/moderation/mutes.ts:155:56
at /workspaces/hashira/packages/db/node_modules/drizzle-orm/postgres-js/session.js:97:37
at /workspaces/hashira/node_modules/postgres/src/index.js:260:21
at new Promise (:1:21)
at /workspaces/hashira/node_modules/postgres/src/index.js:259:24
at scope (/workspaces/hashira/node_modules/postgres/src/index.js:250:29)
at /workspaces/hashira/node_modules/postgres/src/index.js:243:9
4 replies