You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
A bad API key will cause the API call to return a 401 response, and does not catch it.
This returns null to the ArmaMod.UpdateInfos loop and fails for each of it's tries, and has no check for all attempts failing.
ArmaModCollection.AddSteamMod adds the new mod before getting info on it, and doesn't do anything if info getting fails.
To Reproduce
Use a bad or expired API key. (through setup or by editing the config)
Add a new mod or mods through the mods page.
The new mod/mods will have no name or author and a size of 0.00B.
Expected behaviour
A mods info should be filled out.
If that is not possible it should raise an error, with the response type. And depending if it's a 401, prompt to update or remove the API key.
Actual behaviour
The fields of a mods info will be null; Name, Author, SteamLastUpdated, LocalLastUpdated, Size.
Describe the bug
A bad API key will cause the API call to return a 401 response, and does not catch it.
This returns null to the ArmaMod.UpdateInfos loop and fails for each of it's tries, and has no check for all attempts failing.
ArmaModCollection.AddSteamMod adds the new mod before getting info on it, and doesn't do anything if info getting fails.
To Reproduce
Expected behaviour
A mods info should be filled out.
If that is not possible it should raise an error, with the response type. And depending if it's a 401, prompt to update or remove the API key.
Actual behaviour
The fields of a mods info will be null; Name, Author, SteamLastUpdated, LocalLastUpdated, Size.
Screenshots
OS Version:
Additional context
The text was updated successfully, but these errors were encountered: