Skip to content

install.sh fails behind shared IPs (mobile/CGNAT) due to GitHub API rate limit #64

Description

@yookibooki

The install script calls the GitHub API to find the latest version. The API is rate-limited to 60 requests/hour per IP. On shared networks (mobile carriers, CGNAT) one IP is used by thousands of people, so the limit is often already hit. The script then fails with 403.

Fix: use the releases page redirect instead, it is not rate-limited:

version=$(curl -fsSLI -o /dev/null -w '%{redirect_url}' "https://github.com/mochow13/keen-code/releases/latest" | sed 's#.*/tag/##')

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions