Skip to content

fix(bluesky-api): public post search returns 500 for a documented query #2660

Open

Description

@coygeek

Summary

The public FxBluesky post-search endpoint returns HTTP 500 with an empty result envelope for the documented example query puppies, both with the default feed and feed=top. This prevents retrieving post-search results for these tested requests. The production cause and wider reach remain unknown.

Runtime or environment

The public service reported x-powered-by: fixtweet-main-4aae23e-2026-10-28T22:36:04. A fresh read of the default branch found main at 4aae23e3162b9ae16b74522c9df055e16b1fecef; GitHub listed no releases or tags. The runtime OpenAPI spec identifies itself as FxBluesky API 2.0.0. The production runtime and private service configuration were not inspected. Requests used User-Agent: FxEmbedIssueVerification/1.0, no authentication, and a 30-second request limit.

Steps to reproduce

Run these read-only requests against the public service:

curl --max-time 30 -i -A 'FxEmbedIssueVerification/1.0' 'https://api.fxbsky.app/2/search?q=puppies&count=2'
curl --max-time 30 -i -A 'FxEmbedIssueVerification/1.0' 'https://api.fxbsky.app/2/search?q=puppies&feed=top&count=2'

For a same-service control, run GET /2/status/bsky.app/3l6oveex3ii2l with the same request headers.

Expected behavior

Post search accepts the documented example query with the supported page size and returns a successful search-result page when data is available. The current API advertises this as a public capability. A sustained inability to execute valid searches needs investigation; this report does not assume every valid query must have nonempty results or that a 500 response is itself an undocumented response shape.

Actual behavior

Both search requests returned HTTP 500 with exactly this JSON:

{"code":500,"results":[],"cursor":{"top":null,"bottom":null}}

The post-detail control returned HTTP 200 and code: 200 for the requested live post on the same reported service build. This fresh bounded sample made one request per search variant; earlier saved observations show both variants failing on the same reported build, including repeated default-feed search checks. These are observed service failures, not a local worker reproduction or proof of a particular backend fault.

Evidence

  • Expected source: The runtime OpenAPI specification describes /2/search as post search, uses puppies as its query example, accepts count from 1 to 100, and supports latest and top feeds.
  • Failure source: The executed requests and exact HTTP 500 JSON in Steps to reproduce and Actual behavior, with a successful post-detail control on the same public service.
  • Evidence provenance: observed
  • Local verification: reproduced
  • Reproduction completeness: complete

The http results and control outcome were captured directly. earlier saved observations are corroborating supplied evidence only. Verification was performed against the public service; production logs and private backend configuration were not available.

The route definition and packages/atmosphere/src/providers/bluesky/search.ts describe the supported path. The provider calls app.bsky.feed.searchPosts and maps non-400/404 upstream failures to this 500 envelope. A direct unauthenticated request to the default public AppView's search endpoint returned HTTP 403 with an HTML body from this client environment. That separate observation does not establish which backend or response the deployed service used, whether its fallback ran, or whether the failures share a cause.

Restoration check

Repeat both search requests and the post-detail control. Verify that search can retrieve and serialize an actual result page for an available matching query on the public service, with valid post rows and the documented cursor envelope. Returning an empty successful envelope without demonstrating that the search ran would not establish restoration. Preserve legitimate no-match and unavailable-upstream error handling.

References

Bluesky resiliency PR #1956 added public-AppView/proxy fallback for upstream failures. It is historical context, not evidence that the current deployment succeeds or that this incident has the same cause. Existing X/Twitter search reports concern a different host/provider and HTTP 404, so this report is limited to FxBluesky post search.

Triage assessment

  • Impact level: P2
  • Assessment status: supported
  • Impact basis: Both tested forms of a documented post-search query failed on the public service; the observation demonstrates a bounded API capability failure without establishing global outage scope or severe downstream harm.
  • Workaround status: unverified
  • Workaround basis: No successful alternate post-search path was demonstrated; the working post-detail control cannot supply search results, and the direct public-AppView search check also failed from this client environment.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions