BuIlDaLiBlE/BetterHI3Launcher

HELP: recurring installation error

NassyBunny opened this issue · 4 comments

Describe the bug
I have been trying to install the game through the launcher about 2 or 3 times, and every time the download goes on for longer than it should and goes past the 100% mark (it'll display as 113%, for example.) It keeps going like that till it eventually stops and notifies me of an error.

Log
ERROR: Failed to download the game:
System.Exception: Unhandled exception has been thrown on SessionID: 7128
System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: from
at System.Net.Http.Headers.RangeItemHeaderValue..ctor(Nullable1 from, Nullable1 to)
at System.Net.Http.Headers.RangeHeaderValue..ctor(Nullable1 from, Nullable1 to)
at Hi3Helper.Http.Http.d__24.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Hi3Helper.Http.Http.<>c__DisplayClass31_0.<b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Hi3Helper.Http.Http.d__31.MoveNext() ---> System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: from
at System.Net.Http.Headers.RangeItemHeaderValue..ctor(Nullable1 from, Nullable1 to)
at System.Net.Http.Headers.RangeHeaderValue..ctor(Nullable1 from, Nullable1 to)
at Hi3Helper.Http.Http.d__24.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Hi3Helper.Http.Http.<>c__DisplayClass31_0.<b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Hi3Helper.Http.Http.d__31.MoveNext()
--- End of inner exception stack trace ---
at Hi3Helper.Http.Http.d__31.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Hi3Helper.Http.Http.d__40.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at BetterHI3Launcher.MainWindow.d__68.MoveNext()

Additional context
I'm on the Global server and the HoYoverse mirror.

Thanks for the report! The issue is now being investigated.

also tried the other mirror, this is the log I got.

ERROR: Failed to download the game:
System.Net.Http.HttpRequestException: System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a send. ---> System.IO.IOException: Unable to read data from the transport connection: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. ---> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
at System.Net.Sockets.Socket.EndReceive(IAsyncResult asyncResult)
at System.Net.Sockets.NetworkStream.EndRead(IAsyncResult asyncResult)
--- End of inner exception stack trace ---
at System.Net.TlsStream.EndWrite(IAsyncResult asyncResult)
at System.Net.ConnectStream.WriteHeadersCallback(IAsyncResult ar)
--- End of inner exception stack trace ---
at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at System.Net.Http.HttpClientHandler.GetResponseCallback(IAsyncResult ar)
--- End of inner exception stack trace ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Hi3Helper.Http.Http.d__27.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Hi3Helper.Http.Http.d__30.MoveNext() ---> System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a send. ---> System.IO.IOException: Unable to read data from the transport connection: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. ---> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
at System.Net.Sockets.Socket.EndReceive(IAsyncResult asyncResult)
at System.Net.Sockets.NetworkStream.EndRead(IAsyncResult asyncResult)
--- End of inner exception stack trace ---
at System.Net.TlsStream.EndWrite(IAsyncResult asyncResult)
at System.Net.ConnectStream.WriteHeadersCallback(IAsyncResult ar)
--- End of inner exception stack trace ---
at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at System.Net.Http.HttpClientHandler.GetResponseCallback(IAsyncResult ar)
--- End of inner exception stack trace ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Hi3Helper.Http.Http.d__27.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Hi3Helper.Http.Http.d__30.MoveNext()
--- End of inner exception stack trace ---
at Hi3Helper.Http.Http.d__30.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Hi3Helper.Http.Http.d__28.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Hi3Helper.Http.Http.d__40.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at BetterHI3Launcher.MainWindow.d__68.MoveNext()

Hi @NassyBunny, thank you for reporting this issue.
This is an issue on one of the submodule we use to download the file.

This issue has been addressed on this main submodule Pull-Request.

@BuIlDaLiBlE Do I have to make a PR on this repo? because what we need to do is just update the submodule.
Based on our conversation, I will make it a PR later.

Addressed in v1.3.20220707.0.
neon-nyan, much obliged!