BloodyMods / ServerStarter

MIT License
99 stars 62 forks source link

HTTP Error while downloading loader #34

Open clubby789 opened 3 years ago

clubby789 commented 3 years ago

I downloaded the All The Mods 6 installer from https://www.curseforge.com/minecraft/modpacks/all-the-mods-6/files/3315532. The modpack downloads correctly, but every time it attempts to install the loader this error is thrown:

[11:52:15] [ERROR] Problem while installing Loader

        at okhttp3.internal.http2.Http2Stream.takeResponseHeaders(Http2Stream.java:153)
        at okhttp3.internal.http2.Http2Codec.readResponseHeaders(Http2Codec.java:125)
        at okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.java:88)
        at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
        at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:45)
        at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
        at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
        at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:93)
        at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
        at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
        at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93)
        at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
        at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:126)
        at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
        at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
        at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:200)
        at okhttp3.RealCall.execute(RealCall.java:77)
        at atm.bloodworkxgaming.serverstarter.InternetManager.downloadToFile(InternetManager.kt:51)
        at atm.bloodworkxgaming.serverstarter.LoaderManager.installLoader(LoaderManager.kt:115)
        at atm.bloodworkxgaming.serverstarter.ServerStarter.startLoading(ServerStarter.kt:168)
        at atm.bloodworkxgaming.serverstarter.ServerStarterKt.main(ServerStarter.kt:203)

I'm able to download the file manually from the given URL (http://files.minecraftforge.net/maven/net/minecraftforge/forge/1.16.5-36.1.23/forge-1.16.5-36.1.23-installer.jar)

f1nalspace commented 3 years ago

I have the exact same problem, but with a different pack (https://www.curseforge.com/minecraft/modpacks/seaopolis/files/3328337). How can i manually install forge?

Downloading using wget (http://files.minecraftforge.net/maven/net/minecraftforge/forge/1.16.5-36.1.16/forge-1.16.5-36.1.16-installer.jar) works fine.

Do i just execute the -installer.jar inside or outside the mods/ folder?

BloodWorkXGaming commented 3 years ago

please test it with the newly released version :) Also maybe add a https to the front of the link (http -> https)

f1nalspace commented 3 years ago

please test it with the newly released version :) Also maybe add a https to the front of the link (http -> https)

Same problem with B5.5:

[18:41:04] [INFO] Attempting to download installer from http://files.minecraftforge.net/maven/net/minecraftforge/forge/1.16.5-36.1.16/forge-1.16.5-36.1.16-installer.jar [18:41:05] [ERROR] Problem while installing Loader

okhttp3.internal.http2.StreamResetException: stream was reset: PROTOCOL_ERROR at okhttp3.internal.http2.Http2Stream.takeResponseHeaders(Http2Stream.java:153) at okhttp3.internal.http2.Http2Codec.readResponseHeaders(Http2Codec.java:125) at okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.java:88) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147) at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:45) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121) at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:93) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121) at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147) at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:126) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121) at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:200) at okhttp3.RealCall.execute(RealCall.java:77) at atm.bloodworkxgaming.serverstarter.InternetManager.downloadToFile(InternetManager.kt:51) at atm.bloodworkxgaming.serverstarter.LoaderManager.installLoader(LoaderManager.kt:115) at atm.bloodworkxgaming.serverstarter.ServerStarter.startLoading(ServerStarter.kt:168) at atm.bloodworkxgaming.serverstarter.ServerStarterKt.main(ServerStarter.kt:203)

BloodWorkXGaming commented 3 years ago

Sorry, that's not what I meant. I released a new Version of the server starter (in this repo under Releases). Please replace the server starter files from your modpack with the new ones except the config file


From: Finalspace @.> Sent: Tuesday, June 1, 2021 6:42:23 PM To: BloodyMods/ServerStarter @.> Cc: Jonas @.>; Comment @.> Subject: Re: [BloodyMods/ServerStarter] HTTP Error while downloading loader (#34)

please test it with the newly released version :) Also maybe add a https to the front of the link (http -> https)

Same problem with B5.5:

[18:41:04] [INFO] Attempting to download installer from http://files.minecraftforge.net/maven/net/minecraftforge/forge/1.16.5-36.1.16/forge-1.16.5-36.1.16-installer.jar [18:41:05] [ERROR] Problem while installing Loader

okhttp3.internal.http2.StreamResetException: stream was reset: PROTOCOL_ERROR at okhttp3.internal.http2.Http2Stream.takeResponseHeaders(Http2Stream.java:153) at okhttp3.internal.http2.Http2Codec.readResponseHeaders(Http2Codec.java:125) at okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.java:88) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147) at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:45) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121) at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:93) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121) at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147) at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:126) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121) at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:200) at okhttp3.RealCall.execute(RealCall.java:77) at atm.bloodworkxgaming.serverstarter.InternetManager.downloadToFile(InternetManager.kt:51) at atm.bloodworkxgaming.serverstarter.LoaderManager.installLoader(LoaderManager.kt:115) at atm.bloodworkxgaming.serverstarter.ServerStarter.startLoading(ServerStarter.kt:168) at atm.bloodworkxgaming.serverstarter.ServerStarterKt.main(ServerStarter.kt:203)

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/BloodyMods/ServerStarter/issues/34#issuecomment-852275804, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AB6CSZQ3KI4FGJGJDAHG2NDTQUEW7ANCNFSM45PC5PKA.

f1nalspace commented 3 years ago

Sorry, that's not what I meant. I released a new Version of the server starter (in this repo under Releases). Please replace the server starter files from your modpack with the new ones except the config file ____ From: Finalspace @.> Sent: Tuesday, June 1, 2021 6:42:23 PM To: BloodyMods/ServerStarter @.> Cc: Jonas @.>; Comment @.> Subject: Re: [BloodyMods/ServerStarter] HTTP Error while downloading loader (#34) please test it with the newly released version :) Also maybe add a https to the front of the link (http -> https) Same problem with B5.5: [18:41:04] [INFO] Attempting to download installer from http://files.minecraftforge.net/maven/net/minecraftforge/forge/1.16.5-36.1.16/forge-1.16.5-36.1.16-installer.jar [18:41:05] [ERROR] Problem while installing Loader okhttp3.internal.http2.StreamResetException: stream was reset: PROTOCOL_ERROR at okhttp3.internal.http2.Http2Stream.takeResponseHeaders(Http2Stream.java:153) at okhttp3.internal.http2.Http2Codec.readResponseHeaders(Http2Codec.java:125) at okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.java:88) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147) at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:45) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121) at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:93) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121) at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147) at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:126) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121) at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:200) at okhttp3.RealCall.execute(RealCall.java:77) at atm.bloodworkxgaming.serverstarter.InternetManager.downloadToFile(InternetManager.kt:51) at atm.bloodworkxgaming.serverstarter.LoaderManager.installLoader(LoaderManager.kt:115) at atm.bloodworkxgaming.serverstarter.ServerStarter.startLoading(ServerStarter.kt:168) at atm.bloodworkxgaming.serverstarter.ServerStarterKt.main(ServerStarter.kt:203) — You are receiving this because you commented. Reply to this email directly, view it on GitHub<#34 (comment)>, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AB6CSZQ3KI4FGJGJDAHG2NDTQUEW7ANCNFSM45PC5PKA.

Ah ok, i will give it a try for the next update of the pack. Right now it works just fine, i simply run your installer and then forge manually. Magically it works :D

f1nalspace commented 3 years ago

I upgraded to latest seaopolis 1.5 and upgrade the serverstarter to 2.1.0 as well. Same issue, crashes when trying to download forge:

[12:47:05] [INFO] Attempting to download installer from https://files.minecraftforge.net/maven/net/minecraftforge/forge/1.16.5-36.1.16/forge-1.16.5-36.1.16-installer.jar
[12:47:06] [ERROR] Problem while installing Loader from https://files.minecraftforge.net/maven/net/minecraftforge/forge/1.16.5-36.1.16/forge-1.16.5-36.1.16-installer.jar

okhttp3.internal.http2.ConnectionShutdownException
        at okhttp3.internal.http2.Http2Connection.newStream(Http2Connection.kt:246)
        at okhttp3.internal.http2.Http2Connection.newStream(Http2Connection.kt:225)
        at okhttp3.internal.http2.Http2ExchangeCodec.writeRequestHeaders(Http2ExchangeCodec.kt:76)
        at okhttp3.internal.connection.Exchange.writeRequestHeaders(Exchange.kt:59)
        at okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.kt:36)
        at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
        at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.kt:34)
        at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
        at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.kt:95)
        at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
        at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.kt:83)
        at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
        at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.kt:76)
        at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
        at okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhtt

The only way to get this working is to manually installing forge - unfortunatly.

problematiq commented 2 years ago

Has anyone figured this out? Still getting this issue.

problematiq commented 2 years ago

Switching to Java 17 fixes this issue.

Allariah commented 2 years ago

Switching to Java 17 fixes this issue.

Confirmed, this also fixed the issue for me. I was on the LTS release previously.