Fix Hytale Update Failures

What does this MR do and why?

When a user goes to update a Hytale server, an expired auth token will silently cause the update to fail.

This MR adds checks for various update failure conditions, and alerts the user. Stale credentials are removed so the user is prompted to sign in to Hytale again.

Fixes #711 (closed)

Screenshots or screen recordings

image

How to set up and validate locally

  1. Spin up a Hytale server following the usual steps
  2. Change "expires_at" to 1 and refresh_token to "invalid" in .hytale-downloader-credentials.json
  3. Go to Update Center, update the server, and wait for the backup to complete.
  4. You should be prompted to authenticate with Hytale.
  5. After authenticating, the download should proceed.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

  • Have you checked this doesn't interfere/conflict/duplicate someone elses work?
  • Have you fully tested your changes?
  • Have you resolved any lint issues?
  • Have you assigned a reviewer?
  • Have you applied correct labels?
Edited by Iain Powrie

Merge request reports

Loading
Loading