Sentry-javascript: 控制台集成失败 - 节点:错误无法读取 null 的属性“选项”

创建于 2019-03-14  ·  3评论  ·  资料来源: getsentry/sentry-javascript

  • [x] 查看文档: https :
  • [x] 搜索现有问题: https :
  • [x] 使用最新版本: https :

套餐+版本

  • [ ] @sentry/browser
  • [x] @sentry/node
  • [ ] raven-js
  • [ ] raven-node _(节点乌鸦)_
  • [ ] 其他:

版本:

4.6.4

描述

我收到以下错误,不幸的是我仍然无法追踪它。 这个错误是“新的”,但我不确定它来自哪里。 它以前已经起作用了。
错误无法读取 null 的属性“选项”

在 node_modules/esm/esm.js:1:193386
在 ss (node_modules/esm/esm.js:1:193417)
在 node_modules/esm/esm.js:1:195337
在 node_modules/esm/esm.js:1:195465
在 node_modules/esm/esm.js:1:194201
在 Object.apply (node_modules/esm/esm.js:1:193991)
在 Console.log (node_modules/@sentry/node/src/integrations/console.ts:86:36)
在 t.state.user.login.sessionIdCookie.t.state.user.login.loggedIn.t.dispatch.catch.t (webpack/bootstrap:2:0)

我试过一个一个地禁用集成,或者一次全部禁用:没有变化。 甚至降级到@sentry/ node @

我没有想法,有人可以解释这个问题吗?

谢谢,
西蒙

最有用的评论

更新:
禁用所有模块确实“解决”了这个问题。
使用 4.5.0 版和 4.6.4 版。

我必须使用以下配置禁用它:

defaultIntegrations: false,
integrations: [],

我追踪到控制台集成,我的设置突然出现了一些问题。 当 axios 请求失败时,它似乎“只”发生。 (不知道这有什么关系)。

integrations: [
            new Integrations.Dedupe,
            new Integrations.ExtraErrorData,
            new Integrations.InboundFilters,
            new Integrations.FunctionToString,
            // new Integrations.Console, <--- starts working again
            new Integrations.Http,
            new Integrations.OnUncaughtException,
            new Integrations.OnUnhandledRejection,
        ]

根据错误跟踪它必须与这行代码有关:
“消息:util.format.apply(未定义,参数),”
即使我在那里看不到任何“选项”(错误无法读取 null 的属性“选项”),难道“参数”在这里被错误地处理了吗?

所有3条评论

更新:
禁用所有模块确实“解决”了这个问题。
使用 4.5.0 版和 4.6.4 版。

我必须使用以下配置禁用它:

defaultIntegrations: false,
integrations: [],

我追踪到控制台集成,我的设置突然出现了一些问题。 当 axios 请求失败时,它似乎“只”发生。 (不知道这有什么关系)。

integrations: [
            new Integrations.Dedupe,
            new Integrations.ExtraErrorData,
            new Integrations.InboundFilters,
            new Integrations.FunctionToString,
            // new Integrations.Console, <--- starts working again
            new Integrations.Http,
            new Integrations.OnUncaughtException,
            new Integrations.OnUnhandledRejection,
        ]

根据错误跟踪它必须与这行代码有关:
“消息:util.format.apply(未定义,参数),”
即使我在那里看不到任何“选项”(错误无法读取 null 的属性“选项”),难道“参数”在这里被错误地处理了吗?

+1

+1

此页面是否有帮助?
0 / 5 - 0 等级