trumank / mint

Deep Rock Galactic mod loader and integration
MIT License
265 stars 42 forks source link

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

Open Stethor opened 1 year ago

Stethor commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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.

SplitSentro commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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.

SCHENEV-gh commented 1 year ago

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 commented 1 year ago

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