Skip to content

Fix ATProto enable dependency configuration failures #200

@dcadenas

Description

@dcadenas

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions