Closed ffuubarbuzz closed 2 years ago
It must have failed requesting https://raw.githubusercontent.com/Revadike/epicgames-freebies-claimer/master/package.json Maybe it's blocked on your end. You're right, we should do some error handling.
The container was working fine (btw reporting newer version as latest docker is still 1.5.5) for quite a while, and after failure and restarting version got checked without problems. Might be github or network hiccup, but anyway version check failure shouldn't be critical for the container.
The container was working fine (btw reporting newer version as latest docker is still 1.5.5) for quite a while, and after failure and restarting version got checked without problems. Might be github or network hiccup, but anyway version check failure shouldn't be critical for the container.
The latest version in docker image will follow the latest release version, I don't maintain release candidate version.
I think we can avoid this, instead of using package.json from master branch, we use this api: https://api.github.com/repos/Revadike/epicgames-freebies-claimer/releases
This gives us the latest release version in tag_name
, which is better I think.
Either this, or we need to maintain a develop
branch, only merge to master
when we release a new version.
Been working on this using github release api, I will create a PR soon. It will check through the actual release, so if the master
branch is still being worked on but not released yet, it will not warn anymore.
We can remove check-update-github
dependency. One less dependency :).
It's not much different, though. One looks at the GitHub Release API and the package looks at the GitHub Repo API and checks the package.json file. So, I'm not so sure what we gain from it.
@Revadike
Current way: using package.json in master branch: v1.5.6 (this is still not released yet, we are still working on it). It is still v1.5.5 in Release: https://github.com/Revadike/epicgames-freebies-claimer/releases. If user uses the latest Docker image right now, it is v1.5.5 and there will be a warning.
If we use Github Release API then the latest release will be v1.5.5 -> correct one
Fair point. Should I wait for this before releasing v1.5.6?
I will push a PR soon, please wait 😄
Expected Behavior
Container keeps running and not crashing
Actual Behavior
Container crashed with the following log:
Steps to Reproduce the Problem
Just had a container running in the background
Specifications
epicgames-freebies-claimer
Version: 1.5.5Probably it's worth wrapping update checker call with
try/catch