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) 路由 报错:InvalidArgumentError: Invalid URL protocol: the URL must start with http: or https:. #17046

Closed
1 task done
PellaD opened this issue Oct 8, 2024 · 4 comments
Labels
RSS bug Something isn't working

Comments

@PellaD
Copy link

PellaD commented Oct 8, 2024

路由地址

/twitter/media/:id/:routeParams?

完整路由地址

/twitter/media/_RSSHub

相关文档

https://docs.rsshub.app/zh/routes/social-media#user-likes

预期是什么?

返回用户名得到对应推特用户的媒体

实际发生了什么?

返回状态码 503
报错:InvalidArgumentError: Invalid URL protocol: the URL must start with http: or https:.

配置如下:

TWITTER_USERNAME="@my_twitter_id"
TWITTER_PASSWORD="twitter_password"
TWITTER_AUTH_TOKEN="9fe4c409f525eb4dd1f3092892c637ecd0f6fce9"
PROXY_URI="socks5://127.0.0.1:6789"
LOGGER_LEVEL="silly"

部署

自建

部署相关信息

Windows

额外信息

$ pnpm start

> rsshub@1.0.0 start D:\RSSHub
> cross-env NODE_ENV=production tsx lib/index.ts

(node:20352) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
info: 🎉 RSSHub is running on port 1200! Cheers!
info: 💖 Can you help keep this open source project alive? Please sponsor 👉 https://docs.rsshub.app/sponsor
info: 🔗 Local: 👉 http://localhost:1200
info: 🔗 Network: 👉 http://192.168.137.1:1200
info: 🔗 Network: 👉 http://192.168.107.1:1200
info: 🔗 Network: 👉 http://192.168.28.100:1200
info: 🔗 Network: 👉 http://192.168.0.106:1200
info: 🔗 Network: 👉 http://[::]:1200
info: <-- GET /twitter/media/_RSSHub
debug: twitter debug: lock twitter cookie for token 9fe4c409f525eb4dd1f3092892c637ecd0f6fce9
debug: Outgoing request: GET http://127.0.0.1/devtools/browser/0a119135-ce10-4321-bd4a-99c83f1e2f7e
debug: twitter debug: twitter username @my_twitter_id login success
debug: twitter debug: got twitter cookie for token 9fe4c409f525eb4dd1f3092892c637ecd0f6fce9
error: Error in /twitter/media/_RSSHub: InvalidArgumentError: Invalid URL protocol: the URL must start with `http:` or `https:`.
info: --> GET /twitter/media/_RSSHub 503 15s

这不是重复的 issue

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

github-actions bot commented Oct 8, 2024

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 Oct 9, 2024

RSSHub does not support socks proxy.

@PellaD
Copy link
Author

PellaD commented Oct 9, 2024

RSSHub does not support socks proxy.

it works, thank you.

@PellaD
Copy link
Author

PellaD commented Oct 9, 2024

RSSHub does not support socks proxy.

@PellaD PellaD closed this as completed Oct 9, 2024
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