bageren
bageren
DDeno
Created by bageren on 7/17/2024 in #help
TypeError [ERR_STREAM_NULL_VALUES]: May not write null values to stream
Our production server has started crashing frequently because of this error. At this point, we have to seriously consider moving back to Node, unless someone here can help. This is all the details we get when the error is thrown: TypeError [ERR_STREAM_NULL_VALUES]: May not write null values to stream at _write (ext:deno_node/_stream.mjs:3869:15) at Socket.Writable.write (ext:deno_node/_stream.mjs:3904:14) at nextWrite (file:///deno-dir/npm/registry.npmjs.org/postgres/3.4.3/src/connection.js:250:22) at eventLoopTick (ext:core/01_core.js:203:13) We are using Deno 1.45.2. I'd be happy to provide more details - just not sure what's relevant.
3 replies
DDeno
Created by bageren on 3/22/2024 in #help
OpenTelemetry instrumentation
Did anyone have some luck making OpenTelemetry instrumentation libraries work on Deno? I've seen some examples on the internet of @opentelemetry/instrumentation-fetch working, but I've been unable to make mine work so far. I did manage to find a workaround for that, but now I'm trying to get instrumentation for my SQL queries. I'm currently using drizzle-orm and tried to install @opentelemetry/instrumentation-pg. But just like the fetch instrumentation, it doesn't seem to be doing anything at all. Is there something special required to make this work, or are Open Telemetry instrumentation libraries just completely broken on Deno?
4 replies
DDeno
Created by bageren on 2/29/2024 in #help
Running with --cached-only not working
First I cache all dependencies of my typescript file: deno cache --lock=deno.lock --lock-write server.ts Then I try to execute the file using --cached-only: deno run --cached-only --allow-net --allow-read --allow-sys --allow-env --allow-run server.ts Then I get e.g. the following error: error: Error getting response at https://registry.npmjs.org/@aws-sdk/client-rds-data for package "@aws-sdk/client-rds-data": An npm specifier not found in cache: "@aws-sdk/client-rds-data", --cached-only is specified. Why isn't @aws-sdk/client-rds-data cached by the first command if it's needed when I run server.ts?
4 replies