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

console integration fails - node: ERROR Cannot read property 'options' of null #1945

Closed
4 of 8 tasks
simllll opened this issue Mar 14, 2019 · 6 comments
Closed
4 of 8 tasks

Comments

@simllll
Copy link

simllll commented Mar 14, 2019

Package + Version

  • @sentry/browser
  • @sentry/node
  • raven-js
  • raven-node (raven for node)
  • other:

Version:

4.6.4

Description

I get the following error, unfortunately I'm still not able to track it down. This error is "new", but I'm not sure where it comes from. It worked before already.
ERROR Cannot read property 'options' of null

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

I've tried disabling intergrations one by one, or all at once: no change. Not even downgrading to @sentry/node@4.5.0 solves the issue.

I'm out of ideas, can anyone shed light on this issue?

Thanks,
Simon

@simllll
Copy link
Author

simllll commented Mar 14, 2019

Update:
disabling all modules does actually "resolve" the issue.
With version 4.5.0 and also with version 4.6.4.

I have to disable it by using following config though:

defaultIntegrations: false,
integrations: [],

I tracked it down to the console intergration, something isn't working out in my setup suddenly. It seems it's "only" happening when axios is failing with a request. (no idea how this can be related).

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,
        ]

According to the error trace it must be related with this line of code:
"message: util.format.apply(undefined, arguments),"
even though I cannot see any "options" (ERROR Cannot read property 'options' of null) there, can it be that "arguments" is somehow processed wrongly here?

@simllll simllll changed the title node: ERROR Cannot read property 'options' of null console integration fails - node: ERROR Cannot read property 'options' of null Mar 14, 2019
@shlima
Copy link

shlima commented Mar 15, 2019

+1

1 similar comment
@adamboxman
Copy link

+1

@vladanpaunovic
Copy link
Contributor

is this issue still present even with our new versions of SDKs?

@github-actions
Copy link
Contributor

github-actions bot commented Mar 7, 2022

This issue has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you label it Status: Backlog or Status: In Progress, I will leave it alone ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

@simllll
Copy link
Author

simllll commented Mar 7, 2022

Haven't seen it for a while, i guess it's okay to close this. In case it pops up again, i will open a new one

@simllll simllll closed this as completed Mar 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants