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

Install mods failed with "An existing connection was forcibly closed by the remote host" (OS error 10054) #112

Open
Stethor opened this issue Nov 17, 2023 · 7 comments
Labels
C-bug Category: bug, defects P-modio Provider: mod.io S-needs-repro Status: needs reproduction

Comments

@Stethor
Copy link

Stethor commented Nov 17, 2023

System: Windows 10 Pro 22H2
Log:
ERROR drg_mod_integration::gui::message: modio::Error {
kind: Request,
source: Reqwest(
reqwest::Error {
kind: Request,
url: Url {
scheme: "https",
cannot_be_a_base: false,
username: "",
password: None,
host: Some(
Domain(
"api.mod.io",
),
),
port: None,
path: "/v1/games/2475/mods/3500942/files/4517798/download/7ba01aef6b12feb32ce6dc92f008d945",
query: None,
fragment: None,
},
source: hyper::Error(
Io,
Os {
code: 10054,
kind: ConnectionReset,
message: "An existing connection was forcibly closed by the remote host.",
},
),
},
),
}
0:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20: BaseThreadInitThunk
21: RtlUserThreadStart

@trumank
Copy link
Owner

trumank commented Nov 17, 2023

Can you open the URL presented in the log in a web browser? It should download the mod file. If it doesn't then your system can't access mod.io for some reason: https://api.mod.io/v1/games/2475/mods/3500942/files/4517798/download/7ba01aef6b12feb32ce6dc92f008d945

@Stethor
Copy link
Author

Stethor commented Nov 17, 2023

Uhh, despite having this issue for entire day, right know it fixed itself.. somehow. I was trying to get the error again to get acsess to the fresh download link, but instead everything works now. I might re-open the issue if i encounter this problem again and will provide the error message from browser.

@Stethor Stethor closed this as completed Nov 17, 2023
@SplitSentro
Copy link

SplitSentro commented Nov 20, 2023

Had the same issue after updating cache for multiple dozens of mods in a profile for about 10 minutes. Feels like mod.io just timeouts ip after some intensive querying from Mod Integration. Replacing token doesn't help with it. It randomly starts working later.

Now switched to another profile after successfully updating cache for the largest one, clicked install mods with a new one at the top, it blocks me again.

@trumank
Copy link
Owner

trumank commented Nov 20, 2023

Ah I think I have run into that before, but I haven't seen it since I implemented request backoffs. Maybe it can still be rarely triggered from multiple parallel requests hitting the rate limit at just the wrong time? Could try reducing the number of parallel requests slightly, but hard to test if it happens so rarely.

@Stethor
Copy link
Author

Stethor commented Nov 20, 2023

Tried to use the tool for installing more mods, and it seems like that i almost constatly get the error, but randomly it suddenly starts working for some time. I tried to trace the link that error refers to, and i got long loading and than this message: {"error":{"code":401,"error_ref":11000,"message":"We cannot complete your request due to a malformed\/missing api_key in your request. Refer to documentation at https:\/\/docs.mod.io"}}. The thing is, if i just start to spam requests from the tool or from the browser - at some moment it will work and download the mod. So the tool is technically working, but it's really hard to use it comfortably: i just spamming link into the "Add mod" bar or spamming "Install mods" button until it suddenly starts to work.

@Stethor Stethor reopened this Nov 20, 2023
@SCHENEV-gh
Copy link

This problem started recently and has already pissed me off. Because of this error I am now sitting without mods. The funny thing is that indeed, the error sometimes resolves itself, but this is only with the addition of mods, but as soon as it comes to install or update the cache, but all, dead. http request error, connection error and so on. And it's not even with any particular mods and their number happens, but in general the problem has grown to the most uncomfortable stage. I hope the solution to the problem will not wait long
Безымянный

@SCHENEV-gh
Copy link

Hahaha, love the irony. All I had to do was whine and try it after a while and it worked like nothing happened. So if it doesn't work, you have to try again after a while? Well, God bless you

@jieyouxu jieyouxu added C-bug Category: bug, defects S-needs-repro Status: needs reproduction P-modio Provider: mod.io labels Mar 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: bug, defects P-modio Provider: mod.io S-needs-repro Status: needs reproduction
Projects
None yet
Development

No branches or pull requests

5 participants