begoon
begoon
DDeno
Created by begoon on 7/26/2024 in #help
Can non-TS artefacts (images, MD files, etc.) be added to the "deno build" bundle?
Is there a way to add non-TS artifacts (images, MD-files, etc.) to the "deno build" bundle?
6 replies
DDeno
Created by begoon on 7/11/2024 in #help
Transfer-Encoding: chunked
Alas, my question about "Transfer-Encoding: chunked" on SO did not go anywhere. Any advice on the matter from great minds here? https://stackoverflow.com/questions/78720322/why-i-see-chunk-sizes-as-text-in-browser-when-streaming-http-with-transfer-enco
2 replies
DDeno
Created by begoon on 7/1/2024 in #help
deno cache
Does Deno bind cached packages per project? say, a particular concrete location of deno.json. Or the cache is global across the user, and one package when cached, can be taken from cache by Deno for any project?
4 replies
DDeno
Created by begoon on 6/24/2024 in #help
thread 'tokio-runtime-worker' has overflowed its stack
I have a complex CLI application to generate PDF's with pdfkit and a few extra libraries. After the latest Deno update
deno --version deno 1.44.4 (release, aarch64-apple-darwin) v8 12.6.228.9 typescript 5.4.5
everything crashes no matter what with:
cd src/pdf && \ deno run -A --watch \ pdf-cli.ts Watcher Process started. thread 'tokio-runtime-worker' has overflowed its stack fatal runtime error: stack overflow
I'm puzzled how to raise a bug report because I don't know how supply a simple reproducible test case. Also, when I run this project AS IS but with bun, it works as expected. No crashes. Any advice?
6 replies
DDeno
Created by begoon on 4/12/2024 in #help
@vercel/blob put function hangs in Deno
https://github.com/vercel/storage/issues/656 Interestingly, the same snippet works just fine in Bun and Node. Any insights?
5 replies
DDeno
Created by begoon on 1/1/2024 in #help
What is the difference between importing "preact" via esm.sh or npm:...?
What is the difference between importing "preact" via esm.sh or npm:...? "preact": "https://esm.sh/preact@10.19.2", or "preact": "npm:preact@10.19.2", Seems like both work, but which one is preferable these days?
3 replies
DDeno
Created by begoon on 8/31/2023 in #help
Outgoing connection over TLS (port 465) from the deno deployment is failing
I am trying to send an email via Gmail SMTP. The code is trying to connect to smtp.gmail.com on port 465. The connection fails with the error below. Locally, from my mac, the code works as expected. Is it the limitation of the edge platform? The error:
at async Object.connectTls (ext:deno_net/02_tls.js:36:51)
at async https://raw.githubusercontent.com/begoon/denomailer/main/client/basic/client.ts:25:16
at async SMTPClient.send (https://raw.githubusercontent.com/begoon/denomailer/main/client/basic/client.ts:57:5)
at async Module.send (file:///src/bot/emailer.ts:23:5)
at async file:///src/main.ts:232:5
at async dispatch (https://deno.land/x/oak@v12.6.0/middleware.ts:80:7)
at async dispatch (https://deno.land/x/oak@v12.6.0/middleware.ts:80:7)
at async dispatch (https://deno.land/x/oak@v12.6.0/middleware.ts:80:7)
at async Application.#handleRequest (https://deno.land/x/oak@v12.6.0/application.ts:470:9)
8/31/2023, 6:40:49 PM
gcp-europe-southwest1
response: { status: 404, type: undefined, hasBody: false, writable: true }
8/31/2023, 6:40:49 PM
gcp-europe-southwest1

[uncaught application error]: ConnectionRefused - Connection refused (os error 111)
at async Object.connectTls (ext:deno_net/02_tls.js:36:51)
at async https://raw.githubusercontent.com/begoon/denomailer/main/client/basic/client.ts:25:16
at async SMTPClient.send (https://raw.githubusercontent.com/begoon/denomailer/main/client/basic/client.ts:57:5)
at async Module.send (file:///src/bot/emailer.ts:23:5)
at async file:///src/main.ts:232:5
at async dispatch (https://deno.land/x/oak@v12.6.0/middleware.ts:80:7)
at async dispatch (https://deno.land/x/oak@v12.6.0/middleware.ts:80:7)
at async dispatch (https://deno.land/x/oak@v12.6.0/middleware.ts:80:7)
at async Application.#handleRequest (https://deno.land/x/oak@v12.6.0/application.ts:470:9)
8/31/2023, 6:40:49 PM
gcp-europe-southwest1
response: { status: 404, type: undefined, hasBody: false, writable: true }
8/31/2023, 6:40:49 PM
gcp-europe-southwest1

[uncaught application error]: ConnectionRefused - Connection refused (os error 111)
10 replies