GithubHelp home page GithubHelp logo

Comments (7)

lizhiyao avatar lizhiyao commented on July 27, 2024 2

根据你提供的信息,发现你在使用 0.9.8 版本的 SDK,请升级到 0.11.1 版本再观察一下是否还会有同样的问题。

0.9.8 确实会出现 [Object Object] 的情况,不过我有尝试修复这个问题 ad61203d1ef9d0071cc9e163e407d473bf5d58ae。

@dingtwo @ksbaozi

from sentry-miniapp.

lizhiyao avatar lizhiyao commented on July 27, 2024

可以提供更多的信息吗?比如:上报 Error: [object Object] 时的原错误信息? @ksbaozi

from sentry-miniapp.

ksbaozi avatar ksbaozi commented on July 27, 2024

可以提供更多的信息吗?比如:上报 Error: [object Object] 时的原错误信息? @ksbaozi

本地没发现,只有线上才出现,初步怀疑是 wx 的错误回调导致的。因为授权过期的时候就会上报错误。

from sentry-miniapp.

dingtwo avatar dingtwo commented on July 27, 2024

同样的问题,线上已经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.

lizhiyao avatar lizhiyao commented on July 27, 2024

这个问题我有在关注。但是目前在本地开发环境没有复现,不确定是什么样的原始错误信息导致的上报时是 Error: [object Object]。你这边清楚吗? @dingtwo

from sentry-miniapp.

lizhiyao avatar lizhiyao commented on July 27, 2024

先关掉本 issue,有问题再开

from sentry-miniapp.

dingtwo avatar dingtwo commented on July 27, 2024

根据你提供的信息,发现你在使用 0.9.8 版本的 SDK,请升级到 0.11.1 版本再观察一下是否还会有同样的问题。

0.9.8 确实会出现 [Object Object] 的情况,不过我有尝试修复这个问题 ad61203

@dingtwo @ksbaozi

升级之后没出现了

from sentry-miniapp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.