-
Notifications
You must be signed in to change notification settings - Fork 342
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
import PageSpy from '@huolala-tech/page-spy-wechat';
import DataHarborPlugin from '@huolala-tech/page-spy-plugin-mp-data-harbor';
const config = {
caredData: false, // 'console' | 'network' | 'system' | 'storage' | 'meta'
// filename: 'page-spy-data.json',
onAfterUpload: (replayUrl) => {
console.log('onAfterUpload', replayUrl)
}
}
let $dataHarborPlugin
let $pageSpy = null
export function initPageSpy() {
try {
$dataHarborPlugin = new DataHarborPlugin(config)
PageSpy.registerPlugin($dataHarborPlugin);
$pageSpy = new PageSpy({
api: 'pagespy.jikejishu.com',
project: 'huainan-applet',
enableSSL: true,
serializeData: true
})
} catch (error) {
console.log('initPageSpy error', error)
}
}初始化initPageSpy后房间创建成功,调用showPanel上传离线日志也能成功,但是无法播放,播放地址https://pagespy.jikejishu.com/#/replay?url=https://pagespy.jikejishu.com/api/v1/log/download?fileId=local.5de5a1574b3210b977ec65b017b086b4
文件内容为:
[
{
"type": "meta",
"timestamp": 1766720871013,
"data": {
"sdk": "mp-wechat",
"isDevTools": true,
"ua": "ios/10.0.1 mp-wechat/8.0.5",
"plugins": [
"DataHarborPlugin",
"ConsolePlugin",
"ErrorPlugin",
"NetworkPlugin",
"StoragePlugin",
"SystemPlugin"
]
}
}
]使用@huolala-tech/page-spy-uniapp也是一样的问题
Steps to reproduce
No response
System Info
"@huolala-tech/page-spy-plugin-mp-data-harbor": "^2.2.3",
"@huolala-tech/page-spy-uniapp": "^2.2.3",
"@huolala-tech/page-spy-wechat": "^2.2.3",Logs
No response
Validations
- Read the FAQ.
- Read the Contributing Guidelines.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- The provided reproduction is a minimal reproducible example of the bug.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working