Open joeldomke opened 21 hours ago
First, the login route is called without any issues. This shows the library is somewhat working and the database connection is also working. The second request is to the app route.
There is a session validator used by the express server that is skipped for the login route. I guess that is where the call to the app route is failing but this method has more than 250 lines of code and also depends on other libraries as far as I can tell.
I understand that you can't debug that code. If the stack trace is not enough to point toward an issue I would be grateful for any hints on how to narrow this problem down.
Okay, I just noticed that I have Deno 2.1.1 installed. But since I am using the Supabase Edgeruntime it is an older version:
Using supabase-edge-runtime-1.62.2 (compatible with Deno v1.45.2)
Switching from 'npm:ltijsto
https://esm.sh/ltijs@5.9.5` produces
Download https://esm.sh/error.js?type=unsupported-node-builtin-module&name=http2&importer=http2-wrapper@1.0.3
Download https://esm.sh/error.js?type=unsupported-node-builtin-module&name=async_hooks&importer=on-finished@2.4.1
Download https://esm.sh/error.js?type=unsupported-node-builtin-module&name=async_hooks&importer=raw-body@2.5.2
worker boot error: failed to create the graph: Import 'https://esm.sh/error.js?type=unsupported-node-builtin-module&name=http2&importer=http2-wrapper@1.0.3' failed: 500 Internal Server Error
at https://esm.sh/v135/http2-wrapper@1.0.3/esnext/http2-wrapper.mjs:4:23
worker boot error: failed to create the graph: Import 'https://esm.sh/error.js?type=unsupported-node-builtin-module&name=http2&importer=http2-wrapper@1.0.3' failed: 500 Internal Server Error
at https://esm.sh/v135/http2-wrapper@1.0.3/esnext/http2-wrapper.mjs:4:23
InvalidWorkerCreation: worker boot error: failed to create the graph: Import 'https://esm.sh/error.js?type=unsupported-node-builtin-module&name=http2&importer=http2-wrapper@1.0.3' failed: 500 Internal Server Error
at https://esm.sh/v135/http2-wrapper@1.0.3/esnext/http2-wrapper.mjs:4:23
at async UserWorker.create (ext:sb_user_workers/user_workers.js:139:15)
at async Object.handler (file:///root/index.ts:156:22)
at async respond (ext:sb_core_main_js/js/http.js:163:14) {
name: "InvalidWorkerCreation"
}
So I guess something around http2 is just not supported by the Deno version I use.
The http
and http2
module received lots of bug fixes leading up to Deno 2.x . Does the error occur in latest Deno version too or only in older ones?
Version: Deno
2.1.11.45.2I wrote an LTI integration using ltijs as an node app. Then I tried to move the code into an edge function and it fails with the following error:
While working with the node app I was able to modify the ltijs code in the node_modules to pinpoint any issues. This is no longer possible since I moved everything into Supabase edge functions.
The library uses the node module debug for logging. But when I try to turn on logging using an environment variable I get a completely new error.
Does this mean that certain node features required by this library are not yet supported by Deno?
Without logging or being able to modify the ltijs library I am unsure how to further narrow down the problem.
Here is my code: