Skip to main content
← Back to list
01Issue
BugOpenExtensionsPublic
AssigneesNone

Relationships

#1779 rum/site-info: lookup GETs a non-existent endpoint, always 405

Opened by skunk-ape · 8/22/2026

Version: 2026.07.21.1

The lookup method on @swamp/cloudflare/rum/site-info cannot succeed against any account, because it lists from a path Cloudflare does not route.

In models/site_info.ts:206, lookup builds:

const endpoint = "/accounts/" + g.account_id + "/rum/site_info";

and passes it to listAll(). Cloudflare's documented list route for Web Analytics is:

GET /accounts/{account_id}/rum/site_info/list

Observed against a real account (identifiers elided):

GET /accounts/{account_id}/rum/site_info?
-> 405 {"success":false,"errors":[{"code":10405,
    "message":"Method not allowed for this authentication scheme"}]}

The error text points at authentication, but the status is the tell. With the same account and the same token, the documented path returns a different failure:

GET /accounts/{account_id}/rum/site_info/list
-> 403 {"code":10000,"message":"Authentication error"}

That 403 is our own token missing Account Analytics:Read, and it is a separate problem. The point is that the two paths fail differently: /list is routable and rejects the credential, while the bare path is not routable at all. A token with the right scope would still get 405 from lookup.

Impact: lookup can never import an existing site. That leaves adopt as the only import path, and adopt needs a site_tag that the dashboard does not surface conveniently -- so a site created outside swamp is effectively unimportable via this type.

Suggested fix: append "/list" to the endpoint for the listAll call in lookup. The other methods look fine -- get/adopt/update/delete correctly build {endpoint}/{id}, which matches the documented per-site routes.

Upstream repository: https://github.com/swamp-club/swamp-extensions

Environment

  • Extension: @swamp/cloudflare/rum@2026.07.21.1
  • swamp: 20260820.011410.0-sha.23de2d5a
  • OS: darwin (aarch64)
  • Deno: 2.8.3
  • Shell: /bin/zsh
02Bog Flow
OPENTRIAGEDIN PROGRESSSHIPPED

Open

8/22/2026, 4:36:42 PM

No activity in this phase yet.

03Sludge Pulse

Sign in to post a ripple.