Get latest release from API failing only for a specific repo

Get latest release from API failing only for a specific repo: linode/linode-cli.
It exists: https://github.com/linode/linode-cli

But API is not working:

$ curl --silent “https://api.github.com/repos/linode/linode-cli/releases/latest
{
“message”: “Not Found”,
“documentation_url”: “https://docs.github.com/rest/reference/repos#get-the-latest-release
}

If I change the repo for other owner/repo, it works just fine. Why this happens?

When you try without the / at the end it works

https://api.github.com/repos/linode/linode-cli

Then to get the latest release it seems that you only can get the release id even if the documentation says that you can get the latest one

1 Like

Thanks for answering.
I was able to solve problem by looking up on tags instead of releases.
Btw, I have learned how to lookup the API (without the slash). Thanks for that too.

1 Like