Skip to content

fix: fix patch repo rate limiting by switching to raw links + stream downloads to disk#214

Merged
prateek-who merged 1 commit into
devfrom
big-patch-fix
Jul 13, 2026
Merged

fix: fix patch repo rate limiting by switching to raw links + stream downloads to disk#214
prateek-who merged 1 commit into
devfrom
big-patch-fix

Conversation

@prateek-who

Copy link
Copy Markdown
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)
@dr-strange15

dr-strange15 commented Jul 13, 2026

Copy link
Copy Markdown

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
And rate limiting issue is also annoying

@LisoUseInAIKyrios

Copy link
Copy Markdown
Contributor

You can try this now using this artifact

https://github.com/MorpheApp/morphe-cli/actions/runs/29079625755/artifacts/8222247612

@prateek-who
prateek-who merged commit e21646c into dev Jul 13, 2026
3 checks passed
@prateek-who
prateek-who deleted the big-patch-fix branch July 13, 2026 11:39
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))
@Jesse-pinkman-27

Copy link
Copy Markdown

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))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: GUI/CLI downloader appears to buffer entire patch into memory, causing large .mpp downloads to fail bug: Large size patches fail to download

4 participants