Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于引入基座,报错后没有触发上报接口 #27

Open
YJ-H opened this issue Nov 12, 2024 · 2 comments
Open

关于引入基座,报错后没有触发上报接口 #27

YJ-H opened this issue Nov 12, 2024 · 2 comments

Comments

@YJ-H
Copy link

YJ-H commented Nov 12, 2024

server启动成功, /project/init接口也调用完成了,测试抛出一个错误,在console也打印一个ErrorEvent。但是没有调用/log/report。
请问下上报机制是如何触发的,是否需要其他插件辅助?

大致代码如下:
`heimdallr({
dsn: {
host: 'localhost:8000',
init: '/project/init',
report: '/log/report'
},
app: {
name: 'xxx',
leader: 'YJ',
desc: 'xxx'
},
userIdentify: {
name: 'TOKEN', // window.state = { a: [{ user: { id:'123' } }] }
position: 'local'
},
plugins: [
heimdallrConsole()
],
debug: true,
});

// 触发报错
const onCLick = () => {
const person = void 0;
person.name;
}`

@LuciferHuang
Copy link
Owner

在 Network 的 other 下,看是否有请求发出

@Thinking80s
Copy link

问题解决了吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants