Fix/ecommerce 502 bug #1

Merged
stringadmin merged 3 commits from fix/ecommerce-502-bug into master 2026-06-03 02:53:24 +00:00
Owner
No description provided.
stringadmin added 3 commits 2026-06-03 02:53:18 +00:00
- Add /oss/upload-binary route using busboy for FormData multipart uploads
- Fix parseUploadPayload base64 fallback: strip data:xxx;base64 prefix
  instead of using entire rawData string as base64 (caused 44-byte
  corrupt files when DATA_URL_PATTERN regex did not match)
- Add image/avif, image/heic, image/heif to MIME_EXTENSIONS

Root cause of ecommerce 502: base64 dataUrl not matching regex pattern
caused server to store corrupt 44-byte files on OSS, DashScope could
not read them and returned "image format is illegal" error.
- POST /api/client-errors: 批量存储客户端错误(10分钟去重合并)
- GET /api/client-errors: admin分页查看错误列表
- DELETE /api/client-errors: admin清空错误记录
- 72小时自动清理旧数据

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
stringadmin merged commit 94b19459d8 into master 2026-06-03 02:53:24 +00:00
stringadmin deleted branch fix/ecommerce-502-bug 2026-06-03 02:53:24 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: OmniAI/omniai-server#1