# 上传小程序SourceMap文件
# 简要描述
上传SourceMap后,在跑测中发现JS Error时,平台会尝试用SourceMap对JS Error堆栈进行匹配定位源代码位置信息。
# 请求URL
https://minitest.weixin.qq.com/thirdapi/source_map
# 请求方式
- POST
# 参数
| 参数名 | 必选 | 类型 | 说明 |
|---|---|---|---|
| token | 是 | string | 可以从页面右上角头像下拉菜单中的 “我的信息”,跳转至我的信息页面,查看“我的Token” |
| group_en_id | 是 | string | 项目英文ID,可在 项目管理/产品管理 页面获取 |
| file | 是 | FileStorage | sourcemap.zip文件 |
| appid | 否 | string | 小程序AppID,服务商项目必传;非服务商项目默认为项目绑定AppID |
| upload_desc | 否 | string | sourcemap上传备注 |
# 返回示例
{"data":null,"msg":"upload sourcemap file success","rtn":0,"timestamp":1614861228.1035924}# 备注
示例代码可参考文档说明 中的接口示例代码(Python3)
# 更多参考资料
The translations are provided by WeChat Translation and are for reference only. In case of any inconsistency and discrepancy between the Chinese version and the English version, the Chinese version shall prevail.Incorrect translation.Tap to report.