penguin-statistics / backend-next

The refactored Penguin Statistics v3 Backend. Built with Go, fiber, bun and go.uber.org/fx. Uses NATS as MQ and Redis as state synchronization.
MIT License
176 stars 19 forks source link

`/PenguinStats/api/v2/recognition/defects/report/init` 可能需要改善 #490

Closed Tinhone closed 1 year ago

Tinhone commented 1 year ago

在某些极端情况下,RecognitionResult 并非必填字段,导致无法通过网页内通道反馈截图识别缺陷

相关信息,部分隐去

POST | https://penguin-stats.cn/PenguinStats/api/v2/recognition/defects/report/init

状态:400 Bad Request

请求: {"environment":{"frontendVersion":"v3.13.7","frontendCommit":"d9005d8","recognizerVersion":"v4.6.0","recognizerOpenCVVersion":"4.5.5","recognizerAssetsVersion":"CN/23-08-25-11-36-41-12f55f","server":"CN","sessionId":"***"}}

响应:{"code":"INVALID_REQUEST","message":"invalid request: some or all request parameters are invalid","violations":[{"field":"InitDefectReportRequest.RecognitionResult","violation":"required","message":"RecognitionResult 为必填字段"}]}

截图: 图片 图片 图片

GalvinGao commented 1 year ago

感谢汇报,我们将尽快修复此问题

Tinhone commented 1 year ago

截图识别相关 issue:https://github.com/penguin-statistics/recognizer/issues/17