fix: a file the phone cannot read tells the customer to save it on the phone first, and Sentry learns its kind (DTF-WEB-2D)
All checks were successful
Build and deploy / Validate source (push) Successful in 8s
Build and deploy / Integration suite on a real stack (push) Successful in 8m14s
Build and deploy / Secret scan and release gate (push) Successful in 7s
Build and deploy / Publish images (push) Successful in 1m22s
All checks were successful
Build and deploy / Validate source (push) Successful in 8s
Build and deploy / Integration suite on a real stack (push) Successful in 8m14s
Build and deploy / Secret scan and release gate (push) Successful in 7s
Build and deploy / Publish images (push) Successful in 1m22s
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>
This commit is contained in:
@@ -54,6 +54,13 @@ window.dtfObservability.uiError('Pastas automáticas: A última tentativa falhou
|
||||
assert.ok(captured, 'uiError sends a caught error');
|
||||
assert.equal(captured.message, 'Aviso kanban: Pastas automáticas: A última tentativa falhou: :arquivo bloqueado.');
|
||||
assert.deepEqual(captured.options.fingerprint, ['ui-error', 'kanban', 'Pastas automáticas: A última tentativa falhou: :arquivo bloqueado.']);
|
||||
// Extra detail (the kind of file a phone could not read, DTF-WEB-2D) rides along.
|
||||
captured = null;
|
||||
window.dtfObservability.uiError('Envio de arquivo falhou: não conseguimos ler este arquivo no aparelho.', 'site',
|
||||
{erro: 'NotReadableError', extensao: 'png', mb: 12.5});
|
||||
assert.equal(captured.options.extra.extensao, 'png');
|
||||
assert.equal(captured.options.extra.mb, 12.5);
|
||||
assert.ok(captured.options.extra.page);
|
||||
apiError('/orders', 409, 'Falta a foto da revisão.');
|
||||
captured = null;
|
||||
window.dtfObservability.uiError('Falta a foto da revisão.', 'kanban');
|
||||
|
||||
@@ -188,7 +188,10 @@ const run = async (completeSteps, {abortAfter} = {}) => {
|
||||
const {result, error, calls} = await run([{}]);
|
||||
assert.equal(result, undefined);
|
||||
assert.equal(error?.unreadable, true);
|
||||
assert.match(error.message, /Escolha o arquivo de novo/);
|
||||
assert.match(error.message, /salve no aparelho e escolha de novo/);
|
||||
// Sentry learns the kind of file, never its name (DTF-WEB-2D).
|
||||
assert.deepEqual(error.detalhe, {erro: 'NotReadableError', tipo: '', extensao: 'png', mb: 0});
|
||||
assert.ok(!JSON.stringify(error.detalhe).includes('a.png'));
|
||||
assert.equal(calls.length, 0, 'nothing reaches the server');
|
||||
} finally {
|
||||
globalThis.Blob = RealBlob;
|
||||
|
||||
Reference in New Issue
Block a user