Skip to content

fix(pds): return 400 RecordNotFound and treat deleteRecord as no-op#189

Merged
ascorbic merged 2 commits into
mainfrom
fix/record-not-found-status
May 25, 2026
Merged

fix(pds): return 400 RecordNotFound and treat deleteRecord as no-op#189
ascorbic merged 2 commits into
mainfrom
fix/record-not-found-status

Conversation

@ascorbic
Copy link
Copy Markdown
Owner

Summary

  • com.atproto.repo.getRecord now returns HTTP 400 with RecordNotFound for missing records (was 404). Matches the reference @atproto PDS, which raises InvalidRequestError → 400.
  • com.atproto.repo.deleteRecord on a missing record is now a 200 no-op (empty body, no commit) instead of RecordNotFound. Also matches the reference PDS.
  • Adds a pdscheck (repo-read.get-record-missing) that verifies the 400 + RecordNotFound response shape.

Test plan

  • pnpm exec vitest run --config vitest.config.ts in packages/pds — 302/302 pass.
  • pnpm check in apps/check — type-checks cleanly.
  • Run pdscheck against a live PDS to confirm the new check passes.
  • Verify quote-detach flow in Bluesky app against a Cirrus PDS.

Match the reference @atproto PDS: getRecord raises InvalidRequestError
(HTTP 400) with RecordNotFound, and deleteRecord on a missing record is
a 200 no-op rather than an error. Adds a pdscheck for the getRecord
status code.
@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented May 25, 2026

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
pdscheck 20e8de5 May 25 2026, 07:07 AM

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented May 25, 2026

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
atproto-pds 20e8de5 May 25 2026, 07:07 AM

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented May 25, 2026

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
cirrusdocs 20e8de5 Commit Preview URL

Branch Preview URL
May 25 2026, 07:07 AM

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented May 25, 2026

Open in StackBlitz

npm i https://pkg.pr.new/create-pds@189
npm i https://pkg.pr.new/@getcirrus/oauth-provider@189
npm i https://pkg.pr.new/@getcirrus/pds@189

commit: 20e8de5

@ascorbic ascorbic merged commit 5677603 into main May 25, 2026
7 checks passed
@ascorbic ascorbic deleted the fix/record-not-found-status branch May 25, 2026 07:11
@mixie-bot mixie-bot Bot mentioned this pull request May 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant