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

错误信息只上传了一半 #26

Closed
imyellow opened this issue Jun 12, 2020 · 2 comments
Closed

错误信息只上传了一半 #26

imyellow opened this issue Jun 12, 2020 · 2 comments
Labels
bug Something isn't working

Comments

@imyellow
Copy link

imyellow commented Jun 12, 2020

一开始在 sentry 看到错误信息,怎么都看不全,还以为是 sentry 隐藏了,调试接口发现上报就少了。

QQ20200612-150959

在小程序开发工具内调试发现传到服务器的 message 只有前面一部分,后面被...替代了

QQ20200612-151409@2x

image

是在所有页面的 Error 回调里写的,这样写应该是正确的吧
image

@lizhiyao
Copy link
Owner

lizhiyao commented Jun 16, 2020

反馈已收到,我会尽快修复

@lizhiyao lizhiyao added the bug Something isn't working label Jun 24, 2020
@lizhiyao
Copy link
Owner

lizhiyao commented Jun 28, 2020

信息上报不全问题,V0.9.5 已经修复 @imyellow


“是在所有页面的 Error 回调里写的,这样写应该是正确的吧“

  1. sentry-miniapp 会自动监听 sdk.onError 进行错误信息上报
  2. 即使你想主动去调用,可以考虑在应用的生命周期内处理,而不是每一个页面都要去处理

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants