已关闭
[Bug-Report|缺陷反馈]: errmsg:模板占位符个数与上报参数个数不匹配、外部参数问题使用了内部码 #705
liuzhuya创建于 7月9日关闭于 7月20日
ykl999
7月9日 评论:
7月9日 评论:
请根据issue提供的内容定位,并提交pr修复解决


ykl999
7月9日 评论:
7月9日 评论:
/assign @zhuliangying


7月9日 将 zhuliangying 设为负责人
7月9日 修改了issue 的描述
7月9日 修改标题为 “[Bug-Report|缺陷反馈]: errmsg模板:占位符个数与上报参数个数不匹配、外部参数问题使用了内部码”,原标题为“[Bug-Report|缺陷反馈]: errmsg模板占位符个数与上报参数个数不匹配”
7月9日 修改标题为 “[Bug-Report|缺陷反馈]: errmsg模板:占位符个数与上报参数个数不匹配、外部参数问题使用了内部码”,原标题为“[Bug-Report|缺陷反馈]: errmsg模板占位符个数与上报参数个数不匹配”
7月9日 修改标题为 “[Bug-Report|缺陷反馈]: errmsg:模板占位符个数与上报参数个数不匹配、外部参数问题使用了内部码”,原标题为“[Bug-Report|缺陷反馈]: errmsg模板:占位符个数与上报参数个数不匹配、外部参数问题使用了内部码”
7月9日 修改标题为 “[Bug-Report|缺陷反馈]: errmsg:模板占位符个数与上报参数个数不匹配、外部参数问题使用了内部码”,原标题为“[Bug-Report|缺陷反馈]: errmsg模板:占位符个数与上报参数个数不匹配、外部参数问题使用了内部码”
zhuliangying
7月9日 评论:
7月9日 评论:
/assign @chenminghao11


7月9日 将 chenminghao11 设为负责人,移除负责人 zhuliangying
Thanks for sending an issue! Please fill in the following template to help quickly solve your problem.
Describe the current behavior / 问题描述 (Mandatory / 必填)
Environment / 环境信息 (Mandatory / 必填)
NA
Steps to reproduce the issue / 重现步骤 (Mandatory / 必填)
NA
Describe the expected behavior / 预期结果 (Mandatory / 必填)
NA
Related log / screenshot / 日志 / 截图 (Mandatory / 必填)
问题1:
EK0003 模板定义(error_code.json):
{
"ErrCode": "EK0003",
"ErrMessage": "Value %s for %s is invalid. Reason: %s.",
"Arglist": "value,config,reason"
}
此处实际只传入一个参数 src/dfx/msprof/collector/dvvp/msprofiler/prof_ge_core.cpp +186

问题2
案例 4:Model ID 获取失败 — msprofiler_acl_api.cpp:693
int32_t ret = opdescparser::getmodelid(opinfo, opinfolen, index, &result);
if (ret != acl_success) {
msprof_inner_error("ek9999", "failed to get model id on type %s and index %u.",
g_subscribetypemap[type].c_str(), index);
}
问题:这是一个 ACL Profiling API 的回调失败,属于上层 API 调用错误,用户通过接口参数能感知到。但用了内部码
Special notes for this issue/备注 (Optional / 选填)