Open FredslundMagnus opened 2 months ago
I get a new error with deno 1.46.1 (stable, release, x86_64-unknown-linux-gnu)
It successfully sends the messages, and the error is thrown much later
async function f() {
// ...
try {
const res = await admin.messaging().sendEach(messages);
console.log({ failures: res.failureCount, successes: res.successCount }); // 0 failures
} catch (e) {
console.error(e); // No error
}
}
Deno.cron("Create survey instances", { minute: { every: 15 } }, async () => {
try {
await f();
} catch (e) {
console.error(e); // No error here
}
console.log("End of cron"); // This prints
});
But after some time (counted it to around 15 seconds) it throws this error (and crashes the deno process/quits the program):
error: Uncaught Error: Not implemented: callTimeout
at notImplemented (ext:deno_node/_utils.ts:9:9)
at callTimeout (node:http2:1045:3)
at ClientHttp2Stream._onTimeout (node:http2:734:5)
at cb (ext:deno_node/internal/timers.mjs:64:31)
at eventLoopTick (ext:core/01_core.js:209:13)
The error is not thrown if I comment out these line:
// const res = await admin.messaging().sendEach(messages);
// console.log({ failures: res.failureCount, successes: res.successCount }); // 0 failures
But nice progress! Is there any way to catch the error until it is fixed, so the program won't crash?
I ran the same code maybe 2-4 weeks ago on deno deploy and it worked, but now I run it from my own server and get this error: I saw similar issues raised (error with node:http2) before like this but not the same error message.
I run with -A --unstable-kv --unstable-cron and i tried with just --unstable but it did also not work
and i use fresh: "$fresh/": "https://deno.land/x/fresh@1.6.8/",
Not sure if relevant but i have deno to output to port 8000, and then i ran:
And I have secure connection.
Version: Deno 1.45.5