Skip to content

fix: retry unspecified GraphQL queries with live IDs - #77

Open
LuciusChen wants to merge 1 commit into
public-clis:mainfrom
LuciusChen:fix/issue-59-query-unspecified-retry
Open

fix: retry unspecified GraphQL queries with live IDs#77
LuciusChen wants to merge 1 commit into
public-clis:mainfrom
LuciusChen:fix/issue-59-query-unspecified-retry

Conversation

@LuciusChen

Copy link
Copy Markdown
Contributor

Summary

  • refresh the HomeTimeline and HomeLatestTimeline fallback query IDs from the current X web bundle
  • treat GraphQL Query: Unspecified / persisted-query-not-found responses as stale query IDs
  • invalidate the fallback and retry once through the existing live queryId resolver
  • apply the same behavior to GET and POST operations without retrying unrelated HTTP 0/network failures

The current X HomeTimeline bundle only sets forcePost when it includes
seenTweetIds, so this keeps twitter-cli's normal home feed request as GET.

Validation

  • python -m pytest -q — 246 passed, 6 deselected
  • ruff check .
  • mypy twitter_cli

Closes #59.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

error "HTTP 0: Query: Unspecified" for the for you feed

1 participant