fix: fix patch repo rate limiting by switching to raw links + stream downloads to disk#214
Merged
Conversation
prateek-who
commented
Jul 10, 2026
Contributor
- Switched from github/ gitlab api links to raw link which gives a much generous amount of calls before rate limiting. The latest stable/dev versions are now resolve from the repo's raw patches-bundle.json. (API is still present as fallback for fetching patches in case raw fails and also for getting older patches if a user opens the patch version selection screen.)
- Patch downloads now stream straight to disk (as .part file) instead of buffering the whole file in memory. This fixes large files from failing.
- Implemented a slimmed down version of the manager's HttpService. This unifies a lot of stuff that the GitHubPatchSource and GitLabPatchSource used to do, hence this does a decent bit of unification too.
- Added progress for patch download (Minor UI change to make sure the users aren't kept in the dark. Won't notice it usually, but can be seen on larger patches)
…downloads to disk - Switched from github/ gitlab api links to raw link which gives a much generous amount of calls before rate limiting. The latest stable/dev versions are now resolve from the repo's raw patches-bundle.json. (API is still present as fallback for fetching patches incase raw fails and also for getting older patches if a user opens the patch version selection screen.) - Patch downloads now stream straight to disk (as .part file) instead of buffering the whole file in memory. This fixes large files from failing. - Implemented a slimed down version of the manager's HttpService. This unifies a lot of stuff that the GitHubPatchSource and GitLabPatchSource used to do, hence this does a decent bit of unification too. - Added progress for patch download (Won't notice it usually, but can be seen on larger patches)
This was
linked to
issues
Jul 10, 2026
|
When will this pull request be merged to dev branch. The issue this pr solves needs to be fixed asap. Big patches are not downloading at all |
Contributor
|
You can try this now using this artifact https://github.com/MorpheApp/morphe-cli/actions/runs/29079625755/artifacts/8222247612 |
github-actions Bot
pushed a commit
that referenced
this pull request
Jul 13, 2026
# [1.10.0-dev.11](v1.10.0-dev.10...v1.10.0-dev.11) (2026-07-13) ### Bug Fixes * fix patch repo rate limiting by switching to raw links + stream downloads to disk ([#214](#214)) ([e21646c](e21646c))
|
when will the stable version be released? it been more than a month since the last stable release |
github-actions Bot
pushed a commit
that referenced
this pull request
Jul 14, 2026
# [1.10.0](v1.9.1...v1.10.0) (2026-07-14) ### Bug Fixes * Allow patches with empty targets to apply automatically ([#207](#207)) ([5a07bf7](5a07bf7)) * CLI --purge command does not cleanup temp APK ([#169](#169)) ([6163e9c](6163e9c)) * fix patch repo rate limiting by switching to raw links + stream downloads to disk ([#214](#214)) ([e21646c](e21646c)) * Handle GUI patching xapk / apks, add distinct patch-source channel colors, improve patch loading errors ([#180](#180)) ([d8245f0](d8245f0)) * Update to latest patcher ([2c89128](2c89128)) * use latest patcher ([d7e9b62](d7e9b62)) ### Features * "your apps" section + settings and tools split + re-orderable patch sources + block play store updates for patched apps ([#176](#176)) ([d865abd](d865abd)) * Add `--include-experimental` flag to `list-patches` and `list-versions` ([#189](#189)) ([8ef916c](8ef916c)) * Array GUI patches alphabetically, improve error logging, use separate class loader for multiple patch bundles ([#187](#187)) ([755909c](755909c)) * cli ignores unknown keys (fix) + unify CLI/GUI patch cache + add clear-cache + make purge opt-out ([#192](#192)) ([70d16f0](70d16f0)) * Patch sources follows latest (stable/dev) instead of to last used version ([#185](#185)) ([5d34993](5d34993)) * route links through patched app + uninstall from "Your Apps" section's cards ([#179](#179)) ([1626ce5](1626ce5))
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.