[GH-ISSUE #662] setup-periphery.py can fail from rate limiting #8607

Open
opened 2026-05-03 04:43:37 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @b- on GitHub (Jul 14, 2025).
Original GitHub issue: https://github.com/moghtech/komodo/issues/662

tl;dr:

this request will fail if your IP address hits the github api too often (60 times without auth in the past hour):

118ae9b92c/scripts/setup-periphery.py (L18)

fix: if you want to download the latest version, you should simply download from f'https://github.com/moghtech/komodo/releases/latest/download/{periphery_bin}'. This always is a redirect to the latest stable release. Example: https://github.com/moghtech/komodo/releases/latest/download/periphery-x86_64

Something like this could work:

	if load_version() == "latest":
		url = f'https://github.com/moghtech/komodo/releases/latest/download/{periphery_bin}'
	else:
		url = f'https://github.com/moghtech/komodo/releases/download/{load_version()}/{periphery_bin}'
	print(os.popen(f'curl -sSL {url} > {bin_path}').read())
Originally created by @b- on GitHub (Jul 14, 2025). Original GitHub issue: https://github.com/moghtech/komodo/issues/662 ## tl;dr: this request will fail if your IP address hits the github api too often (60 times without auth in the past hour): https://github.com/moghtech/komodo/blob/118ae9b92caf95ae0fdabe9f5984923af4c3bd9d/scripts/setup-periphery.py#L18 fix: if you want to download the latest version, you should simply download from `f'https://github.com/moghtech/komodo/releases/latest/download/{periphery_bin}'`. This always is a [redirect to the latest stable release](https://docs.github.com/en/repositories/releasing-projects-on-github/linking-to-releases#linking-to-the-latest-release). Example: https://github.com/moghtech/komodo/releases/latest/download/periphery-x86_64 Something like this could work: ```python if load_version() == "latest": url = f'https://github.com/moghtech/komodo/releases/latest/download/{periphery_bin}' else: url = f'https://github.com/moghtech/komodo/releases/download/{load_version()}/{periphery_bin}' print(os.popen(f'curl -sSL {url} > {bin_path}').read()) ```
GiteaMirror added the enhancement label 2026-05-03 04:43:37 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/komodo#8607