dantheman
dantheman
DDeno
Created by coty on 5/21/2024 in #help
Debug deno deploy failures ISOLATE_INTERNAL_FAILURE
I've also had internal failure happen when I forgot to set up an http server... they should give a better error
4 replies
DDeno
Created by max on 5/18/2024 in #help
Deno.serve: Is it possible to flush a streaming response?
Ah! It looks like Deno Deploy's default compression buffers output into chunks. I got the expected continuous output in Chrome after adding this response header: Cache-Control: no-transform Hope this helps 🙂
5 replies
DDeno
Created by max on 5/18/2024 in #help
Deno.serve: Is it possible to flush a streaming response?
I don't know what makes a browser show partial pages like the robpike example
5 replies
DDeno
Created by max on 5/18/2024 in #help
Deno.serve: Is it possible to flush a streaming response?
I find that Deno will flush the response continuously, as you give data to the response stream. And for emitting a streaming response I sometimes find it easier to yield chunks from an async generator function, here's a basic example: https://dash.deno.com/playground/sour-bobcat-21
5 replies
DDeno
Created by bageren on 3/22/2024 in #help
OpenTelemetry instrumentation
I did a partial rebuild of opentelemetry-js to Deno, maybe it is helpful. I've been using it for the past year with personal and workplace scripts, incl. Deno Deploy. I also supply Deno-specific instrumentations (http serving, fetch, KV, etc) and some async function wrappers to instrument business logic. I suspect that instrumentation packages from NPM wouldn't want to transmit to this ported version, maybe an importmap could help. Repo: https://github.com/cloudydeno/deno-observability
4 replies
DDeno
Created by dantheman on 8/14/2023 in #help
How to release node:zlib resources
@littledivy maybe you have a quite take on this ^_^
2 replies
DDeno
Created by dantheman on 3/24/2023 in #help
Investigating memory leak after adding new app dependency
Yea, that opentelemetry-js code looks like it was my memory leak ^^ The fetch response bodies must be sitting in external
10 replies
DDeno
Created by dantheman on 3/24/2023 in #help
Investigating memory leak after adding new app dependency
I'm trying to get a minimal repro of my issue put together now and it seems like some irresponsible Response cloning here: https://github.com/open-telemetry/opentelemetry-js/blob/0c37daa0b1fe59a04810514ab4f995070ed84825/experimental/packages/opentelemetry-instrumentation-fetch/src/fetch.ts#L342-L344 I don't see anything cancelling the body of resClone4Hook
10 replies
DDeno
Created by dantheman on 3/24/2023 in #help
Investigating memory leak after adding new app dependency
@.bartlomieju Oh, do you mean #18369 memory leak for >1.31.0? I already verified my behavior is the same on 1.30.0 so what I'm looking at is not a regression
10 replies
DDeno
Created by dantheman on 3/24/2023 in #help
Investigating memory leak after adding new app dependency
ok, I'll keep investigating later in the day and see if I can isolate which layer of my code is triggering it 🙂
10 replies
DDeno
Created by dantheman on 3/24/2023 in #help
Investigating memory leak after adding new app dependency
10 replies
DDeno
Created by dantheman on 3/8/2023 in #help
How can I create a linked [ReadableStream,WritableStream] pair?
ok works great for duplex too
function makeSocketPair() {
const sideA = new TransformStream<Uint8Array>();
const sideB = new TransformStream<Uint8Array>();
return {
left: { readable: sideA.readable, writable: sideB.writable },
right: { readable: sideB.readable, writable: sideA.writable },
};
}
function makeSocketPair() {
const sideA = new TransformStream<Uint8Array>();
const sideB = new TransformStream<Uint8Array>();
return {
left: { readable: sideA.readable, writable: sideB.writable },
right: { readable: sideB.readable, writable: sideA.writable },
};
}
thank you!
4 replies
DDeno
Created by dantheman on 3/8/2023 in #help
How can I create a linked [ReadableStream,WritableStream] pair?
hah, that's brilliant
4 replies