Hoshinonyaruko/palworld-go

Error fetching latest tag

linj121 opened this issue · 1 comments

Error message

Error fetching latest tag: Get "https://gitee.com/api/v5/repos/sanaefox/palworld-go/tags": dial tcp 182.255.33.134:443: i/o timeout

Result

Program exits after this error

Environment

  • VPS on Hetzner
  • Ubuntu 22.04 LTS, x86_64
  • curl https://gitee.com/api/v5/repos/sanaefox/palworld-go/tags on the machine also fails
  • It is very likely a problem from Hetzner, the network traffic to Gitee is somehow being restricted

Workaround

  • Maybe we could try calling Github API after Gitee API times out and throws an error. Reference
  • For example, in Github Cli
gh api \
  -H "Accept: application/vnd.github+json" \
  -H "X-GitHub-Api-Version: 2022-11-28" \
  /repos/Hoshinonyaruko/palworld-go/tags

And we get

[
  {
    "name": "33/merge",
    "zipball_url": "https://api.github.com/repos/Hoshinonyaruko/palworld-go/zipball/refs/tags/33/merge",
    "tarball_url": "https://api.github.com/repos/Hoshinonyaruko/palworld-go/tarball/refs/tags/33/merge",
    "commit": {
      "sha": "1ebc44062aada3026f6cc0d12522fc76a094eba5",
      "url": "https://api.github.com/repos/Hoshinonyaruko/palworld-go/commits/1ebc44062aada3026f6cc0d12522fc76a094eba5"
    },
    "node_id": "REF_kwDOLIL-VrJyZWZzL3RhZ3MvMzMvbWVyZ2U"
  },
  {
    "name": "29/merge",
    "zipball_url": "https://api.github.com/repos/Hoshinonyaruko/palworld-go/zipball/refs/tags/29/merge",
    "tarball_url": "https://api.github.com/repos/Hoshinonyaruko/palworld-go/tarball/refs/tags/29/merge",
    "commit": {
      "sha": "95ab02c95b85085ec13f2cb04de6021966b3c5a9",
      "url": "https://api.github.com/repos/Hoshinonyaruko/palworld-go/commits/95ab02c95b85085ec13f2cb04de6021966b3c5a9"
    },
    "node_id": "REF_kwDOLIL-VrJyZWZzL3RhZ3MvMjkvbWVyZ2U"
  },
  {
    "name": "26/merge",
    "zipball_url": "https://api.github.com/repos/Hoshinonyaruko/palworld-go/zipball/refs/tags/26/merge",
    "tarball_url": "https://api.github.com/repos/Hoshinonyaruko/palworld-go/tarball/refs/tags/26/merge",
    "commit": {
      "sha": "a240e78fb17786d72cd12324267dc4f12a705e3c",
      "url": "https://api.github.com/repos/Hoshinonyaruko/palworld-go/commits/a240e78fb17786d72cd12324267dc4f12a705e3c"
    },
    "node_id": "REF_kwDOLIL-VrJyZWZzL3RhZ3MvMjYvbWVyZ2U"
  },
...

This will be fixed in #36