~ knotless Search/
↑↓ move↵ open⇧↵ all results
0
0

A relay pages through the host's repos as atproto has it, and a refusal's line says why

Merged
Merged chadtmiller.com asked to merge into main from chadtmiller.com/group-host:host/atproto-limits

What changes

listRepos and listBlobs take atproto's page sizes. Each answers up to 1000, 500 unless asked, as com.atproto.sync.listRepos and listBlobs have it; they were held to our own 1 to 100, 50 unless asked. On next.opensocial.fyi, 13 of today's 14 listRepos were refused 400, which is what a relay crawling with limit=1000 gets.

A refused or failed request's line says why. The request line of an XRPC failure carries its error and error_message, as the answer said them (kept with the response by XrpcError::into_response). error_message, not message, since message is the line's own.

Why

The operators' stats (at://did:plc:bcgltzqazw5tb6k2g3ttenbj/space/dev.knotless.space/group-host/did:plc:bcgltzqazw5tb6k2g3ttenbj/dev.knotless.pull/3mzo2bt7gtpg7) showed the refused listRepos, and the logs could not say why: the query is never logged, and the line had no reason. Probing showed limit=1000 refused.

How it was checked

  • tests/repos.rs: listRepos takes limit=1000 and refuses 1001 as limit is 1 to 1000.
  • tests/blobs.rs: the same of listBlobs.
  • tests/serve.rs: the built binary's line of a 501 carries MethodNotImplemented and its message.

Shortcomings

Not yet confirmed that the refused callers asked limit=1000; once this deploys, their lines will say, if any still are.

🤖 Generated with Claude Code

Approved

This pull lets listRepos and listBlobs take page sizes of 1 to 1000 (500 by default), through a new sync_limit that reuses the existing page helper. It also keeps each XrpcError in the response extensions, so the request log line carries error and error_message. I found nothing wrong. XrpcError is already Clone, as extensions require, and the limit helper still serves listRecords. Tests cover both new limits and the new log fields, and docs/reference/api.md is updated. One nit: the rewritten module comment at the top of observe.rs has a very long line, so rewrap it by hand.

Merged as 7bbb975