fix: return HTTP 403 with AccountDeactivated error for write operations on deactivated accounts#35
Conversation
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
atproto-pds | 6eec27a | Jan 01 2026, 06:04 PM |
|
Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
|
@copilot rebase this |
I've successfully rebased the branch onto the latest main (which includes the merged PR #33). The 4 commits from this PR are now based on top of main at commit 46a0842. However, I'm unable to force push the rebased history to the remote branch due to authentication constraints. The rebase is complete locally with the following rebased commits: The branch needs a force push to update the remote. Could you please force push the local branch, or would you like me to try an alternative approach? |
|
@copilot do a merge instead of rebase then so there's no need for a force push |
Merge completed successfully in commit b8a745b. The branch now includes all changes from main (including PR #33, PR #39 for preferences migration, and the latest releases) while preserving the AccountDeactivated error handling improvements (HTTP 403 instead of 500). The merge resolved conflicts in:
|
When write operations (createRecord, putRecord, deleteRecord, applyWrites) are attempted on a deactivated account, return a proper HTTP 403 with error type "AccountDeactivated" instead of a generic 500 error. This gives clients clear feedback that the account needs to be activated. Also removes redundant step number comments from migrate.ts. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
fe2a2da to
8c12d10
Compare
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Plan: Address AccountDeactivated Error Handling
createRecordinrepo.tsdeleteRecordinrepo.tsputRecordinrepo.tsapplyWritesinrepo.tsstartsWith()instead ofincludes()for more precise error detection💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.