GET /xrpc/app.bsky.actor.searchActorsTypeahead typeahead.waow.tech
16
fork

Configure Feed

Select the types of activity you want to include in your feed.

make cursor KV write best-effort

unhandled KV quota errors (free tier: 1000 writes/day) were causing
the entire /admin/ingest endpoint to return 500, which made it look
like D1 was rejecting writes. the actual ingest was never reached.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

+5 -1
+5 -1
src/index.ts
··· 235 235 await env.DB.batch(stmts); 236 236 237 237 if (cursor !== undefined) { 238 - await env.KV.put("jetstream_cursor", String(cursor)); 238 + try { 239 + await env.KV.put("jetstream_cursor", String(cursor)); 240 + } catch { 241 + // best-effort — don't fail the ingest if KV write fails (e.g. quota) 242 + } 239 243 } 240 244 241 245 return json({ ok: true, ingested: events.length });