**Version:** twitter-cli 0.8.5 (latest via pipx)
**OS:** Kali Linux, Python 3.13.14
**Browser (cookie source):** Firefox (Arc/Chrome/Edge extraction failed to locate cookies, fell back correctly to Firefox)
**Description:**
`twitter search` consistently fails with HTTP 404, even after the client's built-in "retry with live queryId" recovery attempt. `twitter feed` and `twitter whoami` succeed with the same session.
Verbose log (-v) shows the account-verification step also returns 404 on both attempted endpoints before falling back to unverified/lazy auth:
DEBUG twitter_cli.auth: Verification endpoint https://api.x.com/1.1/account/verify_credentials.json returned HTTP 404, trying next...
DEBUG twitter_cli.auth: Verification endpoint https://x.com/i/api/1.1/account/settings.json returned HTTP 404, trying next...
INFO twitter_cli.auth: Cookie verification skipped (attempts: verify_credentials.json=404, settings.json=404), will verify on first API call
WARNING twitter_cli.client: Failed to init ClientTransaction: 'NoneType' object has no attribute 'group'
Then on the search call itself:
INFO twitter_cli.client: Retrying SearchTimeline with live queryId after 404
❌ Twitter API error (HTTP 404): Twitter API error 404:
twitter -v search "anime" -n 5
**Working control commands (same session):**
twitter feed -n 5 # succeeds
twitter whoami # succeeds
**Hypothesis:** ClientTransaction (the x-client-transaction-id header generator) is failing to initialize with a regex-match error ('NoneType' object has no attribute 'group'), suggesting it can't parse something it expects from X's current homepage HTML or ondemand.s JS bundle — possibly due to a recent frontend change on X's side. This would explain why every endpoint requiring that header (verify_credentials, settings, search) 404s, while feed/whoami apparently don't require it.
And separately for the title field, use:
ClientTransaction init fails ('NoneType' object has no attribute 'group'), causing persistent 404s on search and account-verification endpoints despite built-in retry
DEBUG twitter_cli.auth: Verification endpoint https://api.x.com/1.1/account/verify_credentials.json returned HTTP 404, trying next...
DEBUG twitter_cli.auth: Verification endpoint https://x.com/i/api/1.1/account/settings.json returned HTTP 404, trying next...
INFO twitter_cli.auth: Cookie verification skipped (attempts: verify_credentials.json=404, settings.json=404), will verify on first API call
WARNING twitter_cli.client: Failed to init ClientTransaction: 'NoneType' object has no attribute 'group'
INFO twitter_cli.client: Retrying SearchTimeline with live queryId after 404
❌ Twitter API error (HTTP 404): Twitter API error 404:
twitter -v search "anime" -n 5
twitter feed -n 5 # succeeds
twitter whoami # succeeds
And separately for the title field, use: