At 19:22 a customer read "Malware scanner unavailable; file remains blocked":
the scan answered "error" (the antivirus not answering, likely restarting
with the deploy), and the page treated it as final, while the worker scans
an "error" file again a minute later (app/scanning.py). The page now keeps
waiting through "error", within the same budget as a pending scan; only
"rejected" stops at once, with its reason.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The worker scans one file at a time for every customer. On 2026-12-02 two
files were checked together, and the one waiting behind the other gave up
after two and a half minutes with "Verificação de segurança pendente"; its
budget counted only its own scan, not the queue. The page now waits the
file's own time plus the 15 minutes the worker gives one file before it
calls the scan stuck (SCAN_STUCK_SECONDS), polling each second for the
first two and a half minutes and then every five, and stops at once when
the customer removes the file. A scan that never ends still says so.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>