The same Android 10 phone failed three times on 2026-12-02 reading a file
seven seconds after picking it: not a permission lost over time, but a file
the phone does not have yet (Google Drive or WhatsApp). "Escolha o arquivo de
novo" sent the customer back to the same file. The message now says "Se ele
está no Google Drive ou no WhatsApp, salve no aparelho e escolha de novo".
The Sentry notice carries the browser's error name, the file's type,
extension and size in MB, never its name, so the next one says which case
it is.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Android Chrome threw NotReadableError reading a picked file (from Drive or
Photos, after switching apps); the customer saw the browser's English text
and "Tentar de novo", which reads the same dead file. The upload now says
"não conseguimos ler este arquivo no aparelho. Escolha o arquivo de novo",
the product page's button becomes "Escolher de novo" (the file leaves the
list and the picker opens), and the cart summary shows no retry for it.
upload_retry_test covers it and fails without the fix.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
tests/test_storage_steady.py covers steady() and the storage's parts, size
and complete (a 5xx retried after 1, 2, 3 s; a 4xx and other errors at once;
NoSuchUpload on an object that exists is done). tests/upload_retry_test.mjs
covers closing the upload in web/upload.js (again after 3 s and 6 s; only
the last attempt reported; a 409 at once; an abort gives the upload back).
Both fail with the retry turned off. steady now looks time.sleep up when it
waits, so a patch of it reaches the storage methods.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>