添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

TypeError: Converting circular structure to JSON
#2809

Closed

Description

  • Review the documentation: https://docs.sentry.io/
  • Search for existing issues: https://github.com/getsentry/sentry-javascript/issues
  • Use the latest release: https://github.com/getsentry/sentry-javascript/releases
  • Provide a link to the affected event from your Sentry account -> https://sentry.io/organizations/deepnote/issues/1781748535/events/7e842347bdf44a49a68f1648d581de36
  • Package + Version

  • @sentry/browser 5.19.1
  • Version:

    5.19.1
    

    Description

    Error:

    TypeError: Converting circular structure to JSON
        --> starting at object with constructor 'b'
        |     property 'collections' -> object with constructor 'Object'
        |     property '149e8f85-8be3-4957-b38b-981c51e38da7' -> object with constructor 'Object'
      at JSON.stringify(<anonymous>)
      at eventToSentryRequest(../node_modules/@sentry/core/esm/request.js:6:20)
      at sendEvent(../node_modules/@sentry/browser/esm/transports/fetch.js:28:25)
      at sendEvent(../node_modules/@sentry/core/esm/basebackend.js:38:25)
      at call(../node_modules/@sentry/core/esm/baseclient.js:318:28)
      at _sendEvent(../node_modules/@sentry/browser/esm/client.js:45:37)
      at onfulfilled(../node_modules/@sentry/core/esm/baseclient.js:377:27)
      at onfulfilled(../node_modules/@sentry/utils/esm/syncpromise.js:136:33)
      at ? (../node_modules/@sentry/utils/esm/syncpromise.js:61:33)
      at Array.forEach(<anonymous>)
      at _executeHandlers(../node_modules/@sentry/utils/esm/syncpromise.js:55:28)
      at _attachHandler(../node_modules/@sentry/utils/esm/syncpromise.js:46:19)
      at executor(../node_modules/@sentry/utils/esm/syncpromise.js:126:19)
      at new e(../node_modules/@sentry/utils/esm/syncpromise.js:73:13)
      at then(../node_modules/@sentry/utils/esm/syncpromise.js:125:16)
      at executor(../node_modules/@sentry/core/esm/baseclient.js:348:18)
      at new e(../node_modules/@sentry/utils/esm/syncpromise.js:73:13)
      at _processEvent(../node_modules/@sentry/core/esm/baseclient.js:346:16)
      at apply(../node_modules/@sentry/core/esm/baseclient.js:91:14)
      at _invokeClient(../node_modules/@sentry/hub/esm/hub.js:58:39)
      at captureEvent(../node_modules/@sentry/hub/esm/hub.js:184:14)
      at handler(../node_modules/@sentry/browser/esm/integrations/globalhandlers.js:61:28)
      at triggerHandlers(../node_modules/@sentry/utils/esm/instrument.js:77:17)
      at Q.onerror(../node_modules/@sentry/utils/esm/instrument.js:434:9)
    

    This is how we're reporting exceptions:

        // error: Error, severityLevel: Severity, extras: { [key: string]: any } 
        withScope(scope => {
          scope.setExtras(extras)
          scope.setLevel(severityLevel)
          captureException(error)
        })
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Assignees

    No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions