【问题类型】服务器 API 问题
【涉及接口】openapi.security.msgSecCheck(内容安全文本识别)
【回包 rid / 请求 ID】req_1770250581836_1c8b6e1e9fa3e
【现象】云函数内调用 msgSecCheck 后,接口返回错误码 -501001(resource system error),且响应体非合法 JSON,导致解析报错:Unexpected token in JSON at position 1。
【复现】小程序云函数中调用 cloud.openapi.security.msgSecCheck,参数符合文档(openid、scene、version、content),偶发出现上述错误。
【诉求】请排查 msgSecCheck 服务端在 -501001 场景下的返回格式及稳定性。未填写 appsecret、access_token、openid 等敏感信息。

使用了3.0.1仍然不行
SDK版本降级看看,指定版本,不要用latest
检查一下wx-server-sdk的版本