Brief Description
After uploading the SourceMap, when a JS Error is detected during testing, the platform attempts to match the JS Error stack trace against the SourceMap to locate the corresponding source code position.
Request URL
https://minitest.weixin.qq.com/thirdapi/source_map
Request Method
- POST
Parameters
| Parameter Name | Required | Type | Description |
|---|---|---|---|
| token | Yes | string | Can be found by navigating to the "My Info" page via the "My Info" option in the avatar dropdown menu at the top right corner of the page, where you can view "My Token" |
| group_en_id | Yes | string | Project English ID, which can be obtained from the Project Management/Product Management page |
| file | Yes | FileStorage | sourcemap.zip file |
| appid | No | string | Mini Program AppID, mandatory for service provider projects; defaults to the bound AppID of the project for non-service provider projects |
| upload_desc | No | string | Notes for sourcemap upload |
Response Example
{
"data": null,
"msg": "upload sourcemap file success",
"rtn": 0,
"timestamp": 1614861228.1035924
}
Notes
For sample code, refer to the API Sample Code (Python3) in the Documentation.