Skip to content

fix(installer): avoid GitHub API rate-limit failures when fetching latest binary#33

Open
SergioChan wants to merge 1 commit intofilebrowser:masterfrom
SergioChan:fix-issue-26-latest-download-fallback
Open

fix(installer): avoid GitHub API rate-limit failures when fetching latest binary#33
SergioChan wants to merge 1 commit intofilebrowser:masterfrom
SergioChan:fix-issue-26-latest-download-fallback

Conversation

@SergioChan
Copy link

Summary

  • stop querying https://api.github.com/repos/filebrowser/filebrowser/releases/latest to extract tag_name
  • download from releases/latest/download/<asset> directly, which GitHub redirects to the newest release asset
  • this avoids empty-tag URLs (.../download//...) when the API call fails/rate-limits and keeps installer behavior unchanged otherwise

Testing

  • bash -n get.sh

Related

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

403 Forbidden when fetching latest version information

1 participant