DIYgod / DIYgod/RSSHub

route/twitter using include_replies will return empty info

Open
#22,964 6 comments 1 reaction 0 assignees View on GitHub
RSS bug
Dominant language
TypeScript
Stars
46.2k
Forks
10.2k
Avg merge
8h 48m
Merged PRs (30d)
175

Description

### 路由地址

```routes
/twitter/user/:id/:routeParams?
```

### 完整路由地址

```fullroutes
/twitter/user/KOMODO_Games_JP/include_replies
```

### 相关文档

https://docs.rsshub.app/zh/routes/twitter

### 预期是什么?

Return with tweet and replies

### 实际发生了什么?

Return empty result

### 部署

自建

### 部署相关信息

OS:Debian, Docker version: 27.5.1, Rsshub Git Hash: c92f107e; TWITTER_AUTH_TOKEN configed

### 额外信息

```shell
info: <-- GET /twitter/user/KOMODO_Games_JP/include_replies
error: undefined
info: --> GET /twitter/user/KOMODO_Games_JP/include_replies 200 1s

After debug of the code found is the following request have 404 return:
https://x.com/i/api/graphql/zDYJgvnhl1qVMpqfvrFeBw/UserTweetsAndReplies

Which may cause by missing x-client-transaction-id

May have a fix but not merge PR #21787
```

### 这不是重复的 issue

- [x] 我已经搜索了 [现有 issue](https://github.com/DIYgod/RSSHub/issues),以确保该错误尚未被报告。

Contributor guide

Open the contributing guide

Research direction

Start with the /twitter/user/:id/:routeParams? route and reproduce the include_replies request for KOMODO_Games_JP. Trace the request to X's UserTweetsAndReplies GraphQL endpoint, then review the reported missing x-client-transaction-id and PR #21787. Done means the route returns tweets and replies instead of an empty result.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
50/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.