invalid image formats after two retries skips

This commit is contained in:
2026-11-12 13:38:08 +03:30
parent af9bed3b0d
commit cbdf4fd2bc
6 changed files with 326 additions and 24 deletions
+1
View File
@@ -24,6 +24,7 @@ source: fanavaran-module-docs
| Missing PolicyId | No/expired policies messages | Block submit; preview may leave null | Manual after data fix | Stage fail history | Admin |
| Duplicate create | Local `claimId`/`claimNo` exists | Skip create; use follow-ups | N/A | skipReason | — |
| Invalid FileTypeId | `نوع فايل با منبع لوکاپ مطابقت ندارد` | Set `ClaimFileTypeId` from tenant `file-types` (Parsian **63**) | After config fix | Attachment stage | Ops |
| Invalid file bytes | `فرمت فایل معتبر نیست` | File is not a real JPEG/PNG/PDF (wrong magic bytes / empty / WEBP-as-jpg). YARA now sniffs magic + sets multipart `contentType` before upload | After replacing the file | Attachment stage | Ops / user re-upload |
| Expertise not ready | `Fanavaran expertise payload is not ready` + warnings | Wait for priced parts / factor | Auto when ready | — | Expert UI |
| Network / 5xx | Axios / gateway errors | Stage failed + schedule retry | Up to `maxRetries` (2) | Audit | Ops |
| Max retries exhausted | Logged warn | Manual submit only | Stop auto | Stage status | Ops |