Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

fix(data-imports): stop retrying bluesky syncs a privacy setting always blocks (#124483)

Tom Owers9312def04f24
diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/bluesky/source.py b/products/warehouse_sources/backend/temporal/data_imports/sources/bluesky/source.py
index e1a7a3def8d2..3c14eee4ab73 100644
--- a/products/warehouse_sources/backend/temporal/data_imports/sources/bluesky/source.py
+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/bluesky/source.py
@@ -87,6 +87,12 @@ class BlueskySource(ResumableSource[BlueskySourceConfig, BlueskyResumeConfig]):
def get_non_retryable_errors(self) -> dict[str, str | None]:
return {
"400 Client Error": "Bluesky couldn't find that handle or DID. Check the spelling and reconnect.",
+ # Bluesky's public, unauthenticated AppView returns 403 when the account has hidden
+ # its posts from logged-out viewers, and this source only ever calls that API.
+ "403 Client Error": (
+ "This account has hidden its posts from logged-out viewers on Bluesky. Ask the account "
+ "owner to allow logged-out access in their Bluesky privacy settings, then reconnect."
+ ),
}
def get_canonical_descriptions(self) -> CanonicalDescriptions:
diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/tests/test_source_error_contract.py b/products/warehouse_sources/backend/temporal/data_imports/sources/tests/test_source_error_contract.py
index 549b3769f8d1..d37211abf4a1 100644
--- a/products/warehouse_sources/backend/temporal/data_imports/sources/tests/test_source_error_contract.py
+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/tests/test_source_error_contract.py
@@ -166,6 +166,7 @@ ONE_AUTH_STATUS_CLASSIFIED: dict[str, str] = {
"AmazonAds": "401",
"AssemblyAI": "401",
"BlandAI": "401",
+ "Bluesky": "403",
"Braintree": "401",
"Bugherd": "401",
"CdcOpenData": "403",