BETH stack tutorial - HRANA_WEBSOCKET_ERROR

I'm going through the BETH stack tutorial in a Linux docker. So far everything's been going well, but I ran into a problem when trying to execute bunx drizzle-kit push:sqlite Does anyone have any suggestions of why this might be happening / how to fix it?
root@b3e1215faf77:/workspaces/TodoListBETH/beth-stack# bunx drizzle-kit push:sqlite

No config path provided, using default path
Reading config file '/workspaces/TodoListBETH/beth-stack/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 (/workspaces/TodoListBETH/beth-stack/node_modules/drizzle-kit/index.cjs:43329:8)
at mapHranaError (/workspaces/TodoListBETH/beth-stack/node_modules/drizzle-kit/index.cjs:48441:11)
at /workspaces/TodoListBETH/beth-stack/node_modules/drizzle-kit/index.cjs:48575:16
at processTicksAndRejections (:61:76)
root@b3e1215faf77:/workspaces/TodoListBETH/beth-stack# bunx drizzle-kit push:sqlite

No config path provided, using default path
Reading config file '/workspaces/TodoListBETH/beth-stack/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 (/workspaces/TodoListBETH/beth-stack/node_modules/drizzle-kit/index.cjs:43329:8)
at mapHranaError (/workspaces/TodoListBETH/beth-stack/node_modules/drizzle-kit/index.cjs:48441:11)
at /workspaces/TodoListBETH/beth-stack/node_modules/drizzle-kit/index.cjs:48575:16
at processTicksAndRejections (:61:76)
5 Replies
nufarandu
nufarandu•14mo ago
@SamK did you find a resolution for this? I am getting the same thing on Windows WSL2 Ubuntu. I tried following along the Turso discord for the same issues and still have problems
SamK
SamKOP•14mo ago
I swapped off BETH stack because SSG is important for my project 😅
nufarandu
nufarandu•14mo ago
I actually did find a solution for anyone interested: I installed Node 20 on a fresh wsl2 ubuntu instance and that seemed to do it. I'm sure it had something to do with shared deps.
SamK
SamKOP•14mo ago
Ohhh I remember I think I did also solve this, I just had some simple typo
Mickey
Mickey•10mo ago
As in you downgraded it? I'm having an error when running the same command, although it's a different error. 😅
Want results from more Discord servers?
Add your server