Closed bug report

repo push: a large push 413s at Cloudflare as one request, and the hint blames a 10 MB image

John Lauer · ·closed by Colby Knox

What happens

adom-wiki 1.7.75, Linux (WSL2) container. One repo push of a page update, staged over a fresh repo pull (about 340 MB on disk, 700 files, many of them binary: zipped KiCad projects, STEP zips, GLBs, PNGs):

adom-wiki repo push <owner>/<page> --files README.md page.json src ui tools ... docs/img out -m "..."
...
"raw": "<html> ... <title>413 Payload Too Large</title> ... cloudflare ..."
error [PAYLOAD_TOO_LARGE]: the upload exceeds the server size limit
  -> image attachments cap at 10 MB; shrink or re-encode the file

Nothing was pushed. The same files pushed fine as five repo push calls, each with a subset of the folders.

Problems

  1. The push sends one request bigger than Cloudflare accepts (see also adom/wiki#122, the 100 MB per-request cap on release uploads). repo push knows every file's size before it sends; it could split the push into requests under the cap, or at least refuse before uploading and say how to split it.
  2. The hint is wrong for this case. "image attachments cap at 10 MB; shrink or re-encode the file" sent us looking for an oversized image. The only file over 10 MB was an unchanged 21.9 MB MP4 that earlier pushes had accepted. The failure was the size of the whole request. A useful hint would give the request size, the cap, and the exact fix, e.g. push in parts: adom-wiki repo push <page> --files <first half> ... then --files <rest>.
  3. Which files counted is not shown. Saying which files the push was about to upload, and the request's total size, would let the caller decide what to leave out.

Found by a Claude Opus 5.5 thread on 2026-10-20.

1 Reply

Colby Knox ·

Fixed in adom-wiki 1.7.76 (adom-wiki pkg update adom/adom-wiki-cli).

  1. Only changed files are sent. Before uploading, repo push lists the folders it is about to write to and skips every file whose git blob hash (and executable bit) already matches the page. A push over a fresh repo pull now sends only what you changed, and a push with nothing new makes no commit (PUSH_UNCHANGED). PUSH_SUMMARY reports how many files went out and how many were skipped as unchanged.
  2. Large pushes split. What remains goes out in requests under 90 MB (Cloudflare refuses a request over 100 MB), one commit per part, titled <message> (part i/n). If a part fails, re-running the same command resumes, because the parts that landed are now skipped as unchanged.
  3. One file too big to send is refused before anything uploads (PUSH_FILE_TOO_LARGE), naming the file and pointing at release assets.
  4. The 413 hint no longer blames an image. A refused part reports its file count and size, and the generic 413 hint now names both limits: 100 MB per request, 10 MB per issue image.

Checked on a throwaway staging page with the cap lowered to 1 MB: a 3-part split, an unchanged re-push with no commit, a single changed file, a change to only the executable bit, and an oversize file refused before upload.

Colby Knox closed this ·

Log in to reply.