Comments (7)
根据你提供的信息,发现你在使用 0.9.8 版本的 SDK,请升级到 0.11.1 版本再观察一下是否还会有同样的问题。
0.9.8 确实会出现 [Object Object] 的情况,不过我有尝试修复这个问题 ad61203d1ef9d0071cc9e163e407d473bf5d58ae。
from sentry-miniapp.
可以提供更多的信息吗?比如:上报 Error: [object Object] 时的原错误信息? @ksbaozi
from sentry-miniapp.
可以提供更多的信息吗?比如:上报 Error: [object Object] 时的原错误信息? @ksbaozi
本地没发现,只有线上才出现,初步怀疑是 wx 的错误回调导致的。因为授权过期的时候就会上报错误。
from sentry-miniapp.
同样的问题,线上已经50k+了,事件的json
{
"event_id": "e1d54ca28f42464bbf68bc2137478e71",
"project": 66,
"release": "",
"dist": null,
"platform": "javascript",
"message": "",
"datetime": "2020-12-27T09:44:40.907503Z",
"tags": [
[
"device",
"Redmi K30 5G"
],
[
"environment",
"production"
],
[
"handled",
"yes"
],
[
"level",
"error"
],
[
"mechanism",
"generic"
],
[
"os",
"Android 10"
],
[
"os.name",
"Android"
],
[
"release",
""
],
[
"user",
"id:"
]
],
"_meta": {
"contexts": {
"device": {
"battery_level": {
"": {
"val": "[undefined]",
"err": [
[
"invalid_data",
{
"reason": "expected a floating point number"
}
]
]
}
}
}
}
},
"_metrics": {
"bytes.ingested.event": 2059,
"flag.processing.error": true,
"bytes.stored.event": 5762
},
"contexts": {
"device": {
"battery_level": null,
"model": "Redmi K30 5G",
"type": "device",
"brand": "Redmi",
"screen_dpi": 2
},
"os": {
"version": "10",
"type": "os",
"name": "Android"
},
"extra": {
"SDKVersion": "2.14.1",
"windowWidth": 393,
"language": "zh_CN",
"screenHeight": 826,
"app": "wechat",
"statusBarHeight": 35,
"storage": "[undefined]",
"fontSizeSetting": 16,
"platform": "android",
"version": "7.0.19",
"windowHeight": 744,
"wifiSignal": "[undefined]",
"screenWidth": 393,
"type": "extra"
}
},
"culprit": "?(app-service)",
"environment": "production",
"errors": [
{
"reason": "expected a floating point number",
"type": "invalid_data",
"name": "contexts.device.battery_level",
"value": "[undefined]"
},
{
"url": "https://lib/WASubContext.js",
"type": "fetch_generic_error",
"value": "<class 'requests.exceptions.ConnectionError'>"
},
{
"url": "https://usr/app-service.js",
"type": "fetch_generic_error",
"value": "<class 'requests.exceptions.ConnectionError'>"
}
],
"exception": {
"values": [
{
"stacktrace": {
"frames": [
{
"abs_path": "https://lib/WASubContext.js",
"module": "WASubContext",
"in_app": false,
"lineno": 2,
"colno": 551378,
"filename": "/WASubContext.js",
"data": {
"orig_in_app": 1
}
},
{
"function": "Object.emit",
"abs_path": "https://lib/WASubContext.js",
"module": "WASubContext",
"filename": "/WASubContext.js",
"lineno": 2,
"colno": 504873,
"in_app": false,
"data": {
"orig_in_app": 1
}
},
{
"function": "i.emit",
"abs_path": "https://lib/WASubContext.js",
"module": "WASubContext",
"filename": "/WASubContext.js",
"lineno": 2,
"colno": 556879,
"in_app": false,
"data": {
"orig_in_app": 1
}
},
{
"function": "i.<anonymous>",
"abs_path": "https://lib/WASubContext.js",
"module": "WASubContext",
"filename": "/WASubContext.js",
"lineno": 2,
"colno": 113070,
"in_app": false,
"data": {
"orig_in_app": 1
}
},
{
"function": "h",
"abs_path": "https://lib/WASubContext.js",
"module": "WASubContext",
"filename": "/WASubContext.js",
"lineno": 2,
"colno": 112245,
"in_app": false,
"data": {
"orig_in_app": 1
}
},
{
"function": "Function.i.test.lD.has.t.<computed>",
"abs_path": "https://lib/WASubContext.js",
"module": "WASubContext",
"filename": "/WASubContext.js",
"lineno": 2,
"colno": 1914607,
"in_app": false,
"data": {
"orig_in_app": 1
}
},
{
"abs_path": "https://usr/app-service.js",
"module": "app-service",
"in_app": false,
"lineno": 7991,
"colno": 1550,
"filename": "/app-service.js",
"data": {
"orig_in_app": 1
}
}
]
},
"type": "Error",
"mechanism": {
"type": "generic",
"handled": true
},
"value": "[object Object]"
}
]
},
"extra": {
"routers": [
{
"route": "pages/classify/classify",
"options": {}
},
{
"route": "pages/Search/Search",
"options": {}
},
{
"route": "pages/Cart/Cart",
"options": {}
}
]
},
"fingerprint": [
"{{ default }}"
],
"grouping_config": {
"enhancements": "eJybzDhxY3J-bm5-npWRgaGlroGxrpHxBABcTQcY",
"id": "newstyle:2019-10-29"
},
"hashes": [
"d7639a66879f404b7c7a06975cbaa6ae"
],
"key_id": "67",
"level": "error",
"location": "/WASubContext.js",
"logger": "",
"metadata": {
"function": "Function.i.test.lD.has.t.<computed>",
"type": "Error",
"value": "[object Object]",
"filename": "/WASubContext.js"
},
"received": 1609062280.907503,
"sdk": {
"version": "0.9.8",
"name": "sentry.javascript.miniapp",
"packages": [
{
"version": "0.9.8",
"name": "npm:@sentry/miniapp"
}
],
"integrations": [
"InboundFilters",
"FunctionToString",
"TryCatch",
"Breadcrumbs",
"GlobalHandlers",
"LinkedErrors",
"System",
"Router",
"IgnoreMpcrawlerErrors"
]
},
"timestamp": 1609062280.907503,
"title": "Error: [object Object]",
"type": "error",
"user": {
"data": {
},
"ip_address": "",
"id": ""
},
"version": "7"
}
from sentry-miniapp.
这个问题我有在关注。但是目前在本地开发环境没有复现,不确定是什么样的原始错误信息导致的上报时是 Error: [object Object]。你这边清楚吗? @dingtwo
from sentry-miniapp.
先关掉本 issue,有问题再开
from sentry-miniapp.
根据你提供的信息,发现你在使用 0.9.8 版本的 SDK,请升级到 0.11.1 版本再观察一下是否还会有同样的问题。
0.9.8 确实会出现 [Object Object] 的情况,不过我有尝试修复这个问题 ad61203
升级之后没出现了
from sentry-miniapp.
Related Issues (20)
- 更新0.11.0后堆栈信息解析错误 HOT 2
- uniapp 小程序报错 HOT 1
- 百度小程序真机里异常不能正常上报
- 有尝试将小程序的source-map导入sentry解析吗? HOT 3
- 微信小程序有支持 performance monitoring 吗? 如利用微信小程序框架提供的performance API 或者别的方式 HOT 1
- 微信原生小程序的自定义消息和异常无法log到后台 HOT 2
- 在生产环境无法回报错误信息 HOT 2
- helpers.d.ts Cannot find name 'Event'. HOT 1
- [email protected] 在Taro2 下,无法错误捕获(手动和自动捕获都不可以) HOT 4
- 公司用的是sentry私有化部署版本,咱们这个支持容器化部署吗? HOT 1
- 有没有办法支持 uniapp-android 平台的weex core process crash
- 有计划支持h5吗 HOT 1
- 可以升级一下sentry-jsdk么 HOT 1
- 有计划添加小程序的白屏检测插件吗
- Taro3.1版本,vue语法不会自动上报错误
- 如何从包中引入BrowserTracing
- 微信原生小程序集成后Crash Free Sessions、Apdex 这两个指标没有数据,是什么原因?
- Cannot read property 'protocol' of undefined HOT 1
- 这个库后续还会维护吗? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sentry-miniapp.