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

Cannot call method 'split' of undefined #1

Closed
ericlbarnes opened this issue Feb 8, 2013 · 4 comments
Closed

Cannot call method 'split' of undefined #1

ericlbarnes opened this issue Feb 8, 2013 · 4 comments

Comments

@ericlbarnes
Copy link

When submitting errors I keep getting this error on bugsnag's end:

Cannot call method 'split' of undefined

Here is a simple test I am using:

try {
  length("test");
} catch (error) {
  Bugsnag.notify("ErrorType", error);
}

Which generates this url: (token and app changed)

https://notify.bugsnag.com/js?notifierVersion=1.0.2&apiKey=changedtoprotectinocent&projectRoot=https%3A%2F%2Fsite.app&context=%2F&releaseStage=Testing&name=ErrorType&&stacktrace=Error%3A+stackgen%0A++++at+generateStacktrace+(https%3A%2F%2Fd2wy8f7a9ursnm.cloudfront.net%2Fbugsnag-1.0.2.js%3A132%3A13)%0A++++at+Object.window.Bugsnag.self.notify+(https%3A%2F%2Fd2wy8f7a9ursnm.cloudfront.net%2Fbugsnag-1.0.2.js%3A173%3A19)%0A++++at+filterList+(https%3A%2F%2Fsite.app%2Fcdn1360353379%2Fjs%2Fapp.js%3A629%3A15)%0A++++at+showFilter+(https%3A%2F%2Fsite.app%2Fcdn1360353379%2Fjs%2Fapp.js%3A611%3A19)%0A++++at+_.extend.route+(https%3A%2F%2Fsite.app%2Fcdn1360353379%2Fjs%2Fstructure.js%3A2246%3A30)%0A++++at+https%3A%2F%2Fsite.app%2Fcdn1360353379%2Fjs%2Fstructure.js%3A2443%3A19%0A++++at+Array.some+(native)%0A++++at+Function._.some._.any+(https%3A%2F%2Fsite.app%2Fcdn1360353379%2Fjs%2Fstructure.js%3A413%3A59)%0A++++at+_.extend.loadUrl+(https%3A%2F%2Fsite.app%2Fcdn1360353379%2Fjs%2Fstructure.js%3A2441%3A23)%0A++++at+_.extend.start+(https%3A%2F%2Fsite.app%2Fcdn1360353379%2Fjs%2Fstructure.js%3A2407%3A45)&ct=img
@loopj
Copy link
Contributor

loopj commented Feb 8, 2013

Hey @ericbarnes this looks like a bug in our server-size stacktrace parsing code.

What browser/os are you using? I'm going to try to reproduce.

@ericlbarnes
Copy link
Author

I was using chrome Version 24.0.1312.57 on OSX 10.8.2

@loopj
Copy link
Contributor

loopj commented Feb 11, 2013

Hey @ericbarnes this issue should now be fixed, we've rolled out better stacktrace parsing on our backend.
We've also just released a new version of the js notifier (1.0.4) so you might also want to upgrade.

Let me know if you are still seeing this problem, just reopen the ticket.

Thanks

  • james

@loopj loopj closed this as completed Feb 11, 2013
@loopj
Copy link
Contributor

loopj commented Feb 11, 2013

Also I just realized, you seem to be calling Bugsnag.notify, you probably actually want to call Bugsnag.notifyException.

Check out the docs for more information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants