-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: expected i32 #27091
Comments
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:ltijs
So I guess something around http2 is just not supported by the Deno version I use. |
The |
I ran the index.ts using Deno 2.1.1 instead of the Supabase Edge Functions and the error still occurs. However, I managed to narrow down the problem. This is a minimal reproducible that works in Node but not in Deno:
results in:
Note that
|
And if I await the get request I get the same error as before:
|
Version: Deno 2.1.1
I 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:
The text was updated successfully, but these errors were encountered: