Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Twitter List 报错 TypeError: api.getList is not a function #15561

Closed
1 task done
InanisV opened this issue May 11, 2024 · 6 comments
Closed
1 task done

Twitter List 报错 TypeError: api.getList is not a function #15561

InanisV opened this issue May 11, 2024 · 6 comments
Labels
RSS bug Something isn't working

Comments

@InanisV
Copy link

InanisV commented May 11, 2024

路由地址

/twitter/list/:id/:routeParams?

完整路由地址

/twitter/list/ladyleet/javascript
/twitter/list/1297881495701397504
测试时没有加参数

相关文档

https://docs.rsshub.app/routes/social-media#list-timeline

预期是什么?

预期是可以正常拿到list的feeds

实际发生了什么?

实际查看docker中的log,发现了以下报错
查看tweet和用户的功能能正常使用,list就说没有这个function

info: <-- GET /twitter/tweet/lookonchain/status/1788404733176373529
info: --> GET /twitter/tweet/lookonchain/status/1788404733176373529 200 1s
info: <-- GET /twitter/user/DIYgod
info: --> GET /twitter/user/DIYgod 200 1s
info: <-- GET /twitter/list/ladyleet/javascript
error: Error in /twitter/list/ladyleet/javascript: TypeError: api.getList is not a function
info: --> GET /twitter/list/ladyleet/javascript 503 9ms
info: <-- GET /twitter/list/1297881495701397504
error: Error in /twitter/list/1297881495701397504: TypeError: api.getList is not a function
info: --> GET /twitter/list/1297881495701397504 503 6ms

部署

自建

部署相关信息

OS: Ubuntu 24.04 LTS, Docker: V26.1.2, Image: DockerHub 0511最新版, Node:V21.7.3

额外信息

报错截图
image

同上,使用`docker log rsshub`查看发现
`TypeError: api.getList is not a function`

home也有一样的问题
`info: <-- GET /twitter/home
error: Error in /twitter/home: TypeError: api.getHomeTimeline is not a function`

这不是重复的 issue

  • 我已经搜索了 现有 issue,以确保该错误尚未被报告。
@InanisV InanisV added the RSS bug Something isn't working label May 11, 2024
Copy link
Contributor

Searching for maintainers:
  • /twitter/list/ladyleet/javascript (文档中的样例): Route not found
  • /twitter/list/1297881495701397504 (我自己找的list): Route not found

To maintainers: if you are not willing to be disturbed, list your username in scripts/workflow/test-issue/call-maintainer.js. In this way, your username will be wrapped in an inline code block when tagged so you will not be notified.

If all routes can not be found, the issue will be closed automatically. Please use NOROUTE for a route-irrelevant issue or leave a comment if it is a mistake.
如果所有路由都无法匹配,issue 将会被自动关闭。如果 issue 和路由无关,请使用 NOROUTE 关键词,或者留下评论。我们会重新审核。

@github-actions github-actions bot reopened this May 11, 2024
Copy link
Contributor

Searching for maintainers:
  • /twitter/list/ladyleet/javascript: Route not found
  • /twitter/list/1297881495701397504: Route not found

To maintainers: if you are not willing to be disturbed, list your username in scripts/workflow/test-issue/call-maintainer.js. In this way, your username will be wrapped in an inline code block when tagged so you will not be notified.

If all routes can not be found, the issue will be closed automatically. Please use NOROUTE for a route-irrelevant issue or leave a comment if it is a mistake.
如果所有路由都无法匹配,issue 将会被自动关闭。如果 issue 和路由无关,请使用 NOROUTE 关键词,或者留下评论。我们会重新审核。

Copy link
Contributor

Searching for maintainers:

To maintainers: if you are not willing to be disturbed, list your username in scripts/workflow/test-issue/call-maintainer.js. In this way, your username will be wrapped in an inline code block when tagged so you will not be notified.

If all routes can not be found, the issue will be closed automatically. Please use NOROUTE for a route-irrelevant issue or leave a comment if it is a mistake.
如果所有路由都无法匹配,issue 将会被自动关闭。如果 issue 和路由无关,请使用 NOROUTE 关键词,或者留下评论。我们会重新审核。

@github-actions github-actions bot reopened this May 11, 2024
Copy link
Contributor

Searching for maintainers:

To maintainers: if you are not willing to be disturbed, list your username in scripts/workflow/test-issue/call-maintainer.js. In this way, your username will be wrapped in an inline code block when tagged so you will not be notified.

If all routes can not be found, the issue will be closed automatically. Please use NOROUTE for a route-irrelevant issue or leave a comment if it is a mistake.
如果所有路由都无法匹配,issue 将会被自动关闭。如果 issue 和路由无关,请使用 NOROUTE 关键词,或者留下评论。我们会重新审核。

@TonyRL
Copy link
Collaborator

TonyRL commented May 11, 2024

Duplicate of #15007

@TonyRL TonyRL marked this as a duplicate of #15007 May 11, 2024
@TonyRL TonyRL closed this as not planned Won't fix, can't repro, duplicate, stale May 11, 2024
@InanisV
Copy link
Author

InanisV commented May 11, 2024

@TonyRL 问题解决了,感谢大佬!确实是Cookie的问题,加上就好了
现在的docker cmd是

docker run -d --name rsshub -p 1200:1200 \
    -e TWITTER_USERNAME=<id> \
    -e TWITTER_PASSWORD=<password> \
    -e TWITTER_COOKIE="auth_token=<token>; ct0=<ct0>;" \
    diygod/rsshub

感觉可能的话,可以优化一下报错信息,目前这个有点笼统,不知道是咋回事😂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RSS bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants