bym-refitted / bymr-desktop-launcher

Windows & Linux launcher written in Rust, Tauri & Svelte for installing the latest patched flash & swf files and launching the game 🕹️
https://bymrefitted.com
6 stars 2 forks source link

Connection Timeout: Cannot access manifest file over HTTPS or HTTP #2

Closed React1-X closed 5 days ago

React1-X commented 4 months ago

A user has reported that the launcher is constantly showing the loading sequence, even after uninstalling and reinstalling.

Evidence Notes:

The following code is responsible for the render. It listens on the tauri event to grab the contents of the manifest file from the rust backend, and sets the current game version to be the value it retrieves from the file.

listen<InitialLoadEvent>("initialLoad", (event) => {
    const manifest = event.payload.manifest;

    current_game_version = manifest.currentGameVersion;

    {#if !current_game_version}
      <div class="w-full h-full flex justify-center items-center" role="status">
        <Loader />
      </div>
    {:else}

Screenshots: loading-sequence

React1-X commented 4 months ago

After improving error handling and adding more descriptive errors:

image

Raw text:

Platform: windows x86_64 Launcher updater event: UPTODATE Could not access over https, attempting http: error sending request for url (https://api.bymrefitted.com/launcher.json) Could not access over http, please check the server status on our discord: error sending request for url (http://api.bymrefitted.com/launcher.json) Server manifest could not be retrieved. Please check your internet connection. "Error code: None, cause: Some(Error { kind: Connect, source: Some(ConnectError(\"tcp connect error\", Os { code: 10060, kind: TimedOut, message: \"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.\" })} }}" Error initializing launcher: Server manifest could not be retrieved. Please check your internet connection. "Error code: None, cause: Some(Error { kind: Connect, source: Some (ConnectError(\"tcp connect error\", Os { code: 10060, kind: TimedOut, message: \"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.\" })) })"

React1-X commented 4 months ago

Additional notes from user: