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

X/twitter获取内容失败 username login failed: Waiting for selector input[autocomplete="current-password"] failed #18562

Closed
1 task done
xiaofeng1986 opened this issue Mar 11, 2025 · 4 comments
Labels
RSS bug Something isn't working

Comments

@xiaofeng1986
Copy link

xiaofeng1986 commented Mar 11, 2025

Routes

/twitter/user/:id/:routeParams?

Full routes

/twitter/user/Super4DeFi/excludeReplies=1

Related documentation

https://docs.rsshub.app/routes/popular#x-twitter

What is expected?

获取RSS 内容

What is actually happening?

docker-compose自建, 最后一次成功获取内容在03/09.
报错 Twitter cookie for token 1714a463******************************** is not valid

Deployment information

Self-hosted

Deployment information (for self-hosted)

OS: Mac osx 15.2, Node Version: v22.11.0, Docker version 27.4.0

Additional info

已正确配置Twitter用户信息
TWITTER_AUTH_TOKEN: '1714a463********************************' 
TWITTER_USERNAME: xiao***********
TWITTER_PASSWORD: Lone***********

附加debug日志
2025-03-11 14:39:06 info: <-- GET /twitter/user/Super4DeFi/excludeReplies=1
2025-03-11 14:39:06 debug: twitter debug: lock twitter cookie for token 1714a463********************************
2025-03-11 14:39:06 debug: Outgoing request: GET https://x.com/
2025-03-11 14:39:07 warn: Request https://x.com with error 403 remaining retry attempts: 2
2025-03-11 14:39:07 debug: Outgoing request: GET http://browserless/
2025-03-11 14:39:37 error: twitter debug: twitter username xiao*********** login failed: Waiting for selector `input[autocomplete="current-password"]` failed: Protocol error (Runtime.callFunctionOn): Target closed
2025-03-11 14:39:37 error: Error in /twitter/user/Super4DeFi/excludeReplies=1: ConfigNotFoundError: Twitter cookie for token 1714a463******************************** is not valid
2025-03-11 14:39:37 info: --> GET /twitter/user/Super4DeFi/excludeReplies=1 503 31s
2025-03-11 14:39:37 info: <-- GET /logo.png
2025-03-11 14:39:37 info: --> GET /logo.png 200 23ms
2025-03-11 14:40:07 debug: Outgoing request: POST http://localhost/v1/traces
2025-03-11 14:40:57 info: <-- GET /apple-touch-icon-precomposed.png
2025-03-11 14:40:57 info: <-- GET /favicon.ico
2025-03-11 14:40:57 info: --> GET /favicon.ico 200 6ms
2025-03-11 14:40:57 info: <-- GET /apple-touch-icon.png
2025-03-11 14:40:57 error: Error in /apple-touch-icon-precomposed.png: NotFoundError: The route does not exist or has been deleted.
2025-03-11 14:40:57 error: Error in /apple-touch-icon.png: NotFoundError: The route does not exist or has been deleted.
2025-03-11 14:40:57 info: --> GET /apple-touch-icon-precomposed.png 404 18ms
2025-03-11 14:40:57 info: --> GET /apple-touch-icon.png 404 7ms
2025-03-11 14:41:28 debug: Outgoing request: POST http://localhost/v1/traces

This is not a duplicated issue

  • I have searched existing issues to ensure this bug has not already been reported
@xiaofeng1986 xiaofeng1986 added the RSS bug Something isn't working label Mar 11, 2025
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 关键词,或者留下评论。我们会重新审核。

1 similar comment
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 关键词,或者留下评论。我们会重新审核。

@xiaolifeizei
Copy link

我今天也遇到这个问题,删除token配置,加上邮箱就好了:

            # twitter config
            TWITTER_USERNAME: xxxx
            TWITTER_PASSWORD: xxxx
            TWITTER_PHONE_OR_EMAIL: [email protected]

@xiaofeng1986
Copy link
Author

非常感谢, 删除token加上邮箱已经能成功获取内容.

我今天也遇到这个问题,删除token配置,加上邮箱就好了:

            # twitter config
            TWITTER_USERNAME: xxxx
            TWITTER_PASSWORD: xxxx
            TWITTER_PHONE_OR_EMAIL: [email protected]

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