diff --git a/CHANGELOG.md b/CHANGELOG.md index 362a12e..c03c4b0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,7 +8,7 @@ - Help output now documents config files and env vars. ### Fixed -- `followers` now falls back to the legacy API when GraphQL returns 404. +- `followers` now falls back to the internal v1.1 REST endpoint when GraphQL returns 404. ### Tests - Add regression test for global options in subcommand help. diff --git a/docs/testing.md b/docs/testing.md index b421e33..82efad9 100644 --- a/docs/testing.md +++ b/docs/testing.md @@ -25,3 +25,4 @@ Notes: - If you don't tweet, set `BIRD_LIVE_TWEET_ID` to a known tweet ID to use for `read/replies/thread`. - Optional: set `BIRD_LIVE_BOOKMARK_FOLDER_ID` to exercise `bookmarks --folder-id`. - `bird query-ids --fresh` live coverage: set `BIRD_LIVE_QUERY_IDS_FRESH=1`. +- The live suite may hit internal X endpoints (v1.1 REST) as fallback; it still uses cookie auth (no developer API key). diff --git a/src/lib/twitter-client-users.ts b/src/lib/twitter-client-users.ts index 16ebb10..7fec6b4 100644 --- a/src/lib/twitter-client-users.ts +++ b/src/lib/twitter-client-users.ts @@ -409,7 +409,7 @@ export function withUsers>( } // GraphQL Followers regularly returns 404 (queryId churn / endpoint flakiness). - // Fallback to the legacy 1.1 endpoint so the CLI stays useful. + // Fallback to the internal v1.1 REST endpoint used by the web client (cookie-auth; no dev API key). const restAttempt = await this.getFollowersViaRest(userId, count); if (restAttempt.success) { return restAttempt;