Summary
POST /api/user/atproto/enable returns 503 when Keycast cannot reach the ATProto control-plane endpoint.
Evidence
Cloud Run prod logs showed:
POST /api/user/atproto/enable 503
Internal error: request failed: error sending request for url (http://127.0.0.1:3201/api/account-links/opt-in)
Suspected Cause
The ATProto provisioning client defaults to http://127.0.0.1:3201, but that dependency appears unavailable in the Cloud Run deployment.
Relevant default:
const DEFAULT_ATPROTO_CONTROL_PLANE_URL: &str = "http://127.0.0.1:3201";
Acceptance Criteria
- Production has an explicit, reachable
DIVINE_SKY_ATPROTO_CONTROL_PLANE_URL, or the endpoint fails closed with a clearer dependency-unavailable response.
- The response explains that ATProto enablement is temporarily unavailable, not a generic internal error.
- Add a startup/config validation or health signal for the ATProto control-plane dependency.
Summary
POST /api/user/atproto/enablereturns 503 when Keycast cannot reach the ATProto control-plane endpoint.Evidence
Cloud Run prod logs showed:
Suspected Cause
The ATProto provisioning client defaults to
http://127.0.0.1:3201, but that dependency appears unavailable in the Cloud Run deployment.Relevant default:
Acceptance Criteria
DIVINE_SKY_ATPROTO_CONTROL_PLANE_URL, or the endpoint fails closed with a clearer dependency-unavailable response.