ivan
ivan
CDCloudflare Developers
Created by flyingshoes on 12/9/2024 in #hyperdrive
unexpected errors
Yeees! Working now! thanks a lot!
16 replies
CDCloudflare Developers
Created by flyingshoes on 12/9/2024 in #hyperdrive
unexpected errors
awesome, thank you!
16 replies
CDCloudflare Developers
Created by flyingshoes on 12/9/2024 in #hyperdrive
unexpected errors
Nope, always postgres 3.4.5 I'm using this code to test and apparently nailed it down to 2046+ values (2045 works ok, 2046+ hangs and ends up in "write CONNECTION_CLOSED"), I have other inserts failing with less rows (~500) but over 11 columns
async function test({ params }, env) {
if (params.secret !== secret) return;
const sql = postgres(env.TSCALE.connectionString);
let n = parseInt(params.n || 1);
let inserts = [];
for (let i = 0; i < n; i++) inserts.push({ value: n });
try {
await sql`INSERT INTO sandbox ${sql(inserts)}`;
} catch (e) {
console.error(e?.message);
}
return new Response("👌");
}
async function test({ params }, env) {
if (params.secret !== secret) return;
const sql = postgres(env.TSCALE.connectionString);
let n = parseInt(params.n || 1);
let inserts = [];
for (let i = 0; i < n; i++) inserts.push({ value: n });
try {
await sql`INSERT INTO sandbox ${sql(inserts)}`;
} catch (e) {
console.error(e?.message);
}
return new Response("👌");
}
16 replies
CDCloudflare Developers
Created by flyingshoes on 12/9/2024 in #hyperdrive
unexpected errors
Hey, I'm seeing something similar, in my case there was no update on the code, was there any change on hyperdrive limits? Every big insert (2500+ values) gets "write CONNECTION_CLOSED" on postgres.js, but previously (before dec 3) this very same inserts were working flawlessly. Also those inserts work ok on local dev using the same database as in production
16 replies
CDCloudflare Developers
Created by Omar on 10/30/2024 in #workers-help
Requests Between a Rust Worker and Nodejs Worker
I've done this kind of setup recently to have an argon2 rust worker called from my js workers, used this repo, maybe it helps: https://github.com/glotlabs/argon2-cloudflare
2 replies
CDCloudflare Developers
Created by Marc Siegel on 10/30/2024 in #workers-help
Should two related workers be developed in a single codebase, with separate wrangler.toml to bind?
And seems here's some guidance on configuration with github: https://developers.cloudflare.com/workers/ci-cd/builds/advanced-setups/
6 replies
CDCloudflare Developers
Created by Marc Siegel on 10/30/2024 in #workers-help
Should two related workers be developed in a single codebase, with separate wrangler.toml to bind?
I haven't tried this but recently was investigating the same, this is an example for many workers monorepo: https://github.com/ardislu/cloudflare-workers
6 replies