Closed kyee-rs closed 9 months ago
I see that @piscisaureus commented that it is a V8-related bug and it should be fixed already but I am still able to reproduce it on the latest version and I don't know which module causes it.
My best guess is that it has to do with the import of the prisma (--no-engine
), but I don't have enough knowledge to prove or disprove it.
Is your host os linux?
What happens if you run docker run local:emphira eval "console.log(1)"
?
Is your host os linux?
Kind of. My local instance's host OS is Windows but I also deploy to Fly.io, which I believe uses Linux under the hood. Also, the problem suddenly disappeared without any code changes, just rebuilt the app a couple of times and it is now working. The only change I made is that I added some environment variables BOT_TOKEN
and DATABASE_URL
, I don't really know if they were the reason of my app crashing.
Both variables are being checked in the code like this...
const variable = Deno.env.get("BOT_TOKEN") // or DATABASE_URL
if (!variable) throw new Error("Environment is unfull")
So I don't really know why the app was crashing without Environment is unfull
but with the error above.
Thanks for reporting back. Closing this issue for now as it is resolved now. Please reopen when you see the same problem again
Version: Deno 1.39.1
Full error message:
Dockerfile:
I've also tried to build the image based on Debian, Ubuntu, Alpine. The error message does not change.
My starting command
My
runtime.ts