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

When the proxy is set, it will cause crash. #18

Closed
youncyb opened this issue Aug 28, 2023 · 5 comments
Closed

When the proxy is set, it will cause crash. #18

youncyb opened this issue Aug 28, 2023 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@youncyb
Copy link

youncyb commented Aug 28, 2023

Describe the bug
When the proxy is set, it will cause crash.

To Reproduce
Steps to reproduce the behavior:

  1. set proxy: 127.0.0.1 1086, it's clash's mixed proxy.
  2. import opml from local file, then click import button.
  3. crash!!! unexpceted exit.
  4. See error:
no LETTURA_ENV
request channel https://wechat2rss.xlab.app/feed/4ebcb3d5a0bdb5fada48eb901a77910f8cbef585.xml
ERROR: reqwest::Error { kind: Request, url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("wechat2rss.xlab.app")), port: None, path: "/feed/373e03599246ef117e24c9ca900acfe168601a81.xml", query: None, fragment: None }, source: hyper::Error(Connect, "socks connect error: Proxy server unreachable") }
URL: "https://wechat2rss.xlab.app/feed/373e03599246ef117e24c9ca900acfe168601a81.xml"
-2->"/Users/xxxx/.lettura/lettura.toml"
ERROR: reqwest::Error { kind: Request, url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("wechat2rss.xlab.app")), port: None, path: "/feed/923c0e2f33b6d39c8a826a90f185725f0edb10e8.xml", query: None, fragment: None }, source: hyper::Error(Connect, "socks connect error: Proxy server unreachable") }
thread 'mainURL: "https://wechat2rss.xlab.app/feed/923c0e2f33b6d39c8a826a90f185725f0edb10e8.xml"
' panicked at 'Error connecting to /Users/xxxx/.lettura/lettura.db: BadConnection("Unable to open the database file")-2->"/Users/xxxx/.lettura/lettura.toml"
', src/db.rs:30:10
request channel https://wechat2rss.xlab.app/feed/311c02e5c56e5c0bcdf41924909407ed2d569d2a.xml
stack backtrace:
URL: "https://wechat2rss.xlab.app/feed/aa202e8b44eec0847ad9ab2bece74addfede9894.xml"
URL: "https://wechat2rss.xlab.app/feed/9f7e55c77c8eaf5f2adb43289de4fe194f7d34e5.xml"
request channel https://wechat2rss.xlab.app/feed/7419897e85fdd038ed2f390a5859b730657ec7ff.xml
ERROR: reqwest::Error { kind: Request, url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("wechat2rss.xlab.app")), port: None, path: "/feed/68a725789c8e9fc3e3f05813880df328f1880fcb.xml", query: None, fragment: None }, source: hyper::Error(Connect, "socks connect error: Proxy server unreachable") }
URL: "https://wechat2rss.xlab.app/feed/68a725789c8e9fc3e3f05813880df328f1880fcb.xml"
-2->"/Users/xxxx/.lettura/lettura.toml"
request channel https://wechat2rss.xlab.app/feed/0db50f315edb5c0af041413fc89note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
e3d4d80a91fdd.xml

Desktop (please complete the following information):

  • OS: macos 13.4.1 intel
  • Version v0.1.8, the newest.
@zhanglun zhanglun self-assigned this Aug 28, 2023
@zhanglun zhanglun added the bug Something isn't working label Aug 28, 2023
@zhanglun
Copy link
Owner

Please check your port settings are correct 127.0.0.1:$your_port
and cloud you share your opml file in this issue for testing?

@katresars
Copy link

👻👻👻👻

@youncyb
Copy link
Author

youncyb commented Aug 30, 2023

@zhanglun

  1. I tested this proxy is no problem
{
  "ip": "5x.x.x.x",
  "hostname": "ipx.x.x.x.xnet",
  "city": "Singapore",
  "region": "Singapore",
  "country": "SG",
  "loc": "1.2897,103.8501",
  "org": "AS16276 OVH SAS",
  "postal": "018989",
  "timezone": "Asia/Singapore",
  "readme": "https://ipinfo.io/missingauth"
}

more details about proxy setting problem:

[2023-08-30][03:22:54][DEBUG][reqwest::connect] proxy(socks5h://127.0.0.1:1086) intercepts 'https://wechat2rss.xlab.app/'
[2023-08-30][03:22:54][DEBUG][reqwest::connect] starting new connection: https://wechat2rss.xlab.app/
[2023-08-30][03:22:54][DEBUG][reqwest::connect] starting new connection: https://wechat2rss.xlab.app/
ERROR: reqwest::Error { kind: Request, url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("wechat2rss.xlab.app")), port: None, path: "/feed/d2b0dc03acc579a8a9c7aa45bf1f531ed5563f59.xml", query: None, fragment: None }, source: hyper::Error(Connect, "socks connect error: Proxy server unreachable") }

proxychains, socks5:127.0.0.1:1086

  1. the opml file is :
    tuisong.opml.zip

@youncyb
Copy link
Author

youncyb commented Sep 18, 2023

it fixed in v0.1.9-1 ?

@zhanglun
Copy link
Owner

it fixed in v0.1.9-1 ?

it‘s not fixed, I can't reproduce right now

@zhanglun zhanglun closed this as completed Dec 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants