bun db:push -> server response: 404
Hello, I'm trying to learn the BETH stack but at the beginning when doing "bun db:push" I get a 404 error.
I'm really a noob with those technologies, if someone could indicate me if I did an obvious mistake, it would be very helpful!
bun db:push
$ bunx drizzle-kit push:sqlite
No config path provided, using default path
Reading config file '/home/sitrius/Documents/projects/patrisk/drizzle.config.ts'
drizzle-kit: v0.19.13
drizzle-orm: v0.28.6
43324 | code;
43325 | constructor(message, code, cause) {
43326 | if (code !== void 0) {
43327 | message =
${code}: ${message};
43328 | }
43329 | super(message, { cause });
^
LibsqlError: HRANA_WEBSOCKET_ERROR: Unexpected server response: 404
code: "HRANA_WEBSOCKET_ERROR"
at new LibsqlError (/home/sitrius/Documents/projects/patrisk/node_modules/drizzle-kit/index.cjs:43329:8)
at mapHranaError (/home/sitrius/Documents/projects/patrisk/node_modules/drizzle-kit/index.cjs:48441:11)
at /home/sitrius/Documents/projects/patrisk/node_modules/drizzle-kit/index.cjs:48575:16
at processTicksAndRejections (:61:76)
error: script "db:push" exited with code 1 (SIGHUP)
Solution:Jump to solution
Thank you very much, on this server I read the "Websocket 404" issue and it seems to be a bun issue that isn't fixed yet.
I decided to run "sudo apt install npm" and it seems to fix the problem!!
I'll now continue to enjoy your amazing tutorial....
4 Replies
For context I'm on Ubuntu 23.10 if its relevant and I created the turso database
looks like a turso problem
maybe ask in their discord: https://discord.gg/3vjdp4yc
Solution
Thank you very much, on this server I read the "Websocket 404" issue and it seems to be a bun issue that isn't fixed yet.
I decided to run "sudo apt install npm" and it seems to fix the problem!!
I'll now continue to enjoy your amazing tutorial.
Hi, can you explain this and share sources? I think i have a very similar error.