reqwest icon indicating copy to clipboard operation
reqwest copied to clipboard

Local feeds fail to load because of an "os error 104"

Open atomikaya opened this issue 1 year ago • 3 comments

I have an issue with an app using reqwest (newsflash), the issue seems to be coming from this lib, can anyone confirm ?

General Information:

Distribution: Fedora 35
Desktop Environment: Gnome 41.6 (Gnome Shell)
NewsFlash Package Type: Flathub
NewsFlash Version: 1.5.1

:warning: Also, I was travelling and / or probably using rubbish networks when the issue started but it stayed even after I settled down.

Observed behavior and how to reproduce:

When I run the app through flatpak run com.gitlab.newsflash and hit the refresh button I get an error line for each feed it can't reach that looks like this:

ERROR - Downloading feed failed: https://www.webtoons.com/en/sf/city-of-blank/rss?title_no=1895 - error sending request for url (https://www.webtoons.com/en/sf/city-of-blank/rss?title_no=1895): error trying to connect: Connexion ré-initialisée par le correspondant (os error 104) (news_flash::feed_api_implementations::local:100)

Expected behavior:

No connexion error.

atomikaya avatar Sep 03 '22 09:09 atomikaya

These are the settings used by NewsFlash:

let mut builder = ClientBuilder::new()
            .user_agent("Mozilla/5.0 (X11; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0")
            .use_native_tls()
            .trust_dns(true)
            .gzip(true)
            .brotli(true)
            .timeout(Duration::from_secs(60))
            .danger_accept_invalid_certs(settings.read().get_accept_invalid_certs())
            .danger_accept_invalid_hostnames(settings.read().get_accept_invalid_hostnames());

the two "danger" options are disabled by default and can only be enabled hacking a hidden config file.

The feed is downloaded with client.get(url.as_str()).send().await in a threadpool thread with a newly created tokio runtime and block_on.

jangernert avatar Sep 03 '22 09:09 jangernert

Hey OP, Does this happen consistently? The server at, www.webtoons.com sometimes returns connection reset errors. (Tested with curl and hyper).

Also in linux, os error 104 appears to indicate connection reset error. Does this happen with any other site ?

ishanjain28 avatar Sep 03 '22 16:09 ishanjain28

Ok, sorry I'm not good at all with network stuff so it could be a problem on their end. Thanks for testing. It does not happen with other servers, but I don't have a large enough sample to be sure of anything. I'm gonna contact them again with this new information.

atomikaya avatar Sep 03 '22 17:09 atomikaya