Git Product home page Git Product logo

angular-raven's Introduction

angular-raven Build Status

A Raven.js / Sentry wrapper for Angular.js

#How do I add this to my project?

You can download angular-raven by:

<body ng-app="YOUR_APP" ng-controller="MainCtrl">
  <a href="#error" ng-click="logError()">Log Error</a>
</body>
<script src="http://cdnjs.cloudflare.com/ajax/libs/raven.js/1.0.8/raven.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.2.10/angular.js"></script>
<script>
  Raven.config('YOUR_PUBLIC_DSN', {
      // Raven settings
    })
    .setUser({
      "id": "SERVER_RENDERED_ID",
      "email": "SERVER_RENDERED_EMAIL"
    })
    .install()
</script>
<script src="app/bower_components/angular-raven/angular-raven.js"></script>

<script>
  angular.module('YOUR_APP', [
    'ngRaven',
    'controllers'
  ])
  .config(function($ravenProvider) {
    // There is a development flag to log errors rather than sending it to Sentry
    $ravenProvider.development(true);
  });

  angular.module('controllers', [])
    .controller('MainCtrl', function($scope, $raven) {
      $scope.logError = function() {
        $raven.captureMessage('Error');
      };
    });
</script>

Initializing Raven.js outside of Angular allows Raven to track errors when Angular wasn't able to bootstrap correctly.

The community has compiled a list of common ignore rules for common things, like Facebook, Chrome extensions, etc.

Raven.config('YOUR_PUBLIC_DSN', {
  logger: 'javascript',
  ignoreErrors: [
    // Random plugins/extensions
    'top.GLOBALS',
    // See: http://blog.errorception.com/2012/03/tale-of-unfindable-js-error. html
    'originalCreateNotification',
    'canvas.contentDocument',
    'MyApp_RemoveAllHighlights',
    'http://tt.epicplay.com',
    'Can\'t find variable: ZiteReader',
    'jigsaw is not defined',
    'ComboSearch is not defined',
    'http://loading.retry.widdit.com/',
    'atomicFindClose',
    // Facebook borked
    'fb_xd_fragment',
    // ISP "optimizing" proxy - `Cache-Control: no-transform` seems to reduce this. (thanks @acdha)
    // See http://stackoverflow.com/questions/4113268/how-to-stop-javascript-injection-from-vodafone-proxy
    'bmi_SafeAddOnload',
    'EBCallBackMessageReceived',
    // See http://toolbar.conduit.com/Developer/HtmlAndGadget/Methods/JSInjection.aspx
    'conduitPage'
  ],
  ignoreUrls: [
    // Facebook flakiness
    /graph\.facebook\.com/i,
    // Facebook blocked
    /connect\.facebook\.net\/en_US\/all\.js/i,
    // Woopra flakiness
    /eatdifferent\.com\.woopra-ns\.com/i,
    /static\.woopra\.com\/js\/woopra\.js/i,
    // Chrome extensions
    /extensions\//i,
    /^chrome:\/\//i,
    // Other plugins
    /127\.0\.0\.1:4001\/isrunning/i,  // Cacaoweb
    /webappstoolbarba\.texthelp\.com\//i,
    /metrics\.itunes\.apple\.com\.edgesuite\.net\//i
  ]
}).install();

angular-raven's People

Contributors

coltonmccormack avatar danilo-valente avatar mcnocopo avatar michaeldjeffrey avatar patrickjs avatar rebelliard avatar rike422 avatar rkeilty avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

angular-raven's Issues

Working with older versions of raven-js

We haven't upgraded sentry to version 8 yet but when updating one of our angular projects i noticed that this library had updated to the latest raven-js release.

I'm still using version 0.5.11 intentionally because i wanted to keep using the older release in order to use sentry 7 but it still updated to the latest version.

In the bower.json for this project, raven-js is set to "*" so it always installs the latest release.

This is quite inconvenient for us using older releases.

I suggest doing a new 0.5 release and setting the raven-js entry to "~1.3.0"

Exception causes error in sentry

When trying to integrate the library I've noticed the following issue and it appears to be around this line of code. cause passed in from angular is a string and the exception is an Error instance. The second argument of captureException expects an object and not a string. This results in the following log in sentry.

sentry error

There's an entry for each character in the string. I put a breakpoint and wrapped cause with { extra: { "cause": cause } } and that appears to mitigate the issue but I'm not sure that this is desired. Any thoughts?

Development mode causes console errors to be thrown multiple times

In addition to Angular's monster error messages, this module logs them multiple times when development mode is turned on. This usually results in pages full of repeating stack traces. In my opinion the $log.error here, here and here is unnecessary because Angular already catches and logs the errors.

Here's a sample stack trace from Angular without ngRaven:

Uncaught Error: [$injector:modulerr] Failed to instantiate module publish due to:
Error: [$injector:unpr] Unknown provider: $ravenProvider
http://errors.angularjs.org/1.4.6/$injector/unpr?p0=%24ravenProvider
    at http://localhost:3000/static/js/lib/angular.js?c=220915-131656:68:12
    at http://localhost:3000/static/js/lib/angular.js?c=220915-131656:4287:19
    at getService (http://localhost:3000/static/js/lib/angular.js?c=220915-131656:4435:39)
    at Object.invoke (http://localhost:3000/static/js/lib/angular.js?c=220915-131656:4467:13)
    at runInvokeQueue (http://localhost:3000/static/js/lib/angular.js?c=220915-131656:4382:35)
    at http://localhost:3000/static/js/lib/angular.js?c=220915-131656:4391:11
    at forEach (http://localhost:3000/static/js/lib/angular.js?c=220915-131656:336:20)
    at loadModules (http://localhost:3000/static/js/lib/angular.js?c=220915-131656:4372:5)
    at createInjector (http://localhost:3000/static/js/lib/angular.js?c=220915-131656:4297:11)
    at doBootstrap (http://localhost:3000/static/js/lib/angular.js?c=220915-131656:1657:20)
http://errors.angularjs.org/1.4.6/$injector/modulerr?p0=publish&p1=Error%3A…st%3A3000%2Fstatic%2Fjs%2Flib%2Fangular.js%3Fc%3D220915-131656%3A1657%3A20)

And here's a stack trace with ngRaven:

Raven: Exception  ReferenceError: asd is not defined
    at new <anonymous> (http://localhost:3000/static/js/angular/core/services/publicationService.js?c=220915-131656:823:9)
    at invoke (http://localhost:3000/static/js/lib/angular.js?c=220915-131656:4476:17)
    at Object.instantiate (http://localhost:3000/static/js/lib/angular.js?c=220915-131656:4484:27)
    at Object.<anonymous> (http://localhost:3000/static/js/lib/angular.js?c=220915-131656:4344:24)
    at Object.invoke (http://localhost:3000/static/js/lib/angular.js?c=220915-131656:4476:17)
    at Object.enforcedReturnValue [as $get] (http://localhost:3000/static/js/lib/angular.js?c=220915-131656:4328:37)
    at Object.invoke (http://localhost:3000/static/js/lib/angular.js?c=220915-131656:4476:17)
    at http://localhost:3000/static/js/lib/angular.js?c=220915-131656:4293:37
    at getService (http://localhost:3000/static/js/lib/angular.js?c=220915-131656:4435:39)
    at Object.invoke (http://localhost:3000/static/js/lib/angular.js?c=220915-131656:4467:13) Object {culprit: "http://localhost:3000/publications/?page=1", extra: Object}(anonymous function) @ angular.js?c=220915-131656:12450captureException @ angular-raven.js?c=220915-131656:21$ExceptionHandler @ angular-raven.js?c=220915-131656:156(anonymous function) @ angular.js?c=220915-131656:7090forEach @ angular.js?c=220915-131656:336(anonymous function) @ angular.js?c=220915-131656:7069invoke @ angular.js?c=220915-131656:4476enforcedReturnValue @ angular.js?c=220915-131656:4328invoke @ angular.js?c=220915-131656:4476(anonymous function) @ angular.js?c=220915-131656:4293getService @ angular.js?c=220915-131656:4435directiveIsMultiElement @ angular.js?c=220915-131656:8367collectDirectives @ angular.js?c=220915-131656:7742applyDirectivesToNode @ angular.js?c=220915-131656:8025compileNodes @ angular.js?c=220915-131656:7589compile @ angular.js?c=220915-131656:7496applyDirectivesToNode @ angular.js?c=220915-131656:7972compileNodes @ angular.js?c=220915-131656:7589compile @ angular.js?c=220915-131656:7496applyDirectivesToNode @ angular.js?c=220915-131656:7972compileNodes @ angular.js?c=220915-131656:7589compileNodes @ angular.js?c=220915-131656:7601compileNodes @ angular.js?c=220915-131656:7601compile @ angular.js?c=220915-131656:7496(anonymous function) @ angular-ui-router.js?c=220915-131656:4013invokeLinkFn @ angular.js?c=220915-131656:8780nodeLinkFn @ angular.js?c=220915-131656:8280compositeLinkFn @ angular.js?c=220915-131656:7671publicLinkFn @ angular.js?c=220915-131656:7546updateView @ angular-ui-router.js?c=220915-131656:3959(anonymous function) @ angular-ui-router.js?c=220915-131656:3921Scope.$broadcast @ angular.js?c=220915-131656:16244$state.transition.resolved.then.$state.transition @ angular-ui-router.js?c=220915-131656:3311processQueue @ angular.js?c=220915-131656:14678(anonymous function) @ angular.js?c=220915-131656:14694Scope.$eval @ angular.js?c=220915-131656:15922Scope.$digest @ angular.js?c=220915-131656:15733Scope.$apply @ angular.js?c=220915-131656:16030done @ angular.js?c=220915-131656:10545completeRequest @ angular.js?c=220915-131656:10717requestLoaded @ angular.js?c=220915-131656:10658
angular.js?c=220915-131656:12450 ReferenceError: asd is not defined
    at new <anonymous> (http://localhost:3000/static/js/angular/core/services/publicationService.js?c=220915-131656:823:9)
    at invoke (http://localhost:3000/static/js/lib/angular.js?c=220915-131656:4476:17)
    at Object.instantiate (http://localhost:3000/static/js/lib/angular.js?c=220915-131656:4484:27)
    at Object.<anonymous> (http://localhost:3000/static/js/lib/angular.js?c=220915-131656:4344:24)
    at Object.invoke (http://localhost:3000/static/js/lib/angular.js?c=220915-131656:4476:17)
    at Object.enforcedReturnValue [as $get] (http://localhost:3000/static/js/lib/angular.js?c=220915-131656:4328:37)
    at Object.invoke (http://localhost:3000/static/js/lib/angular.js?c=220915-131656:4476:17)
    at http://localhost:3000/static/js/lib/angular.js?c=220915-131656:4293:37
    at getService (http://localhost:3000/static/js/lib/angular.js?c=220915-131656:4435:39)
    at Object.invoke (http://localhost:3000/static/js/lib/angular.js?c=220915-131656:4467:13) undefined(anonymous function) @ angular.js?c=220915-131656:12450(anonymous function) @ angular.js?c=220915-131656:9237$ExceptionHandler @ angular-raven.js?c=220915-131656:158(anonymous function) @ angular.js?c=220915-131656:7090forEach @ angular.js?c=220915-131656:336(anonymous function) @ angular.js?c=220915-131656:7069invoke @ angular.js?c=220915-131656:4476enforcedReturnValue @ angular.js?c=220915-131656:4328invoke @ angular.js?c=220915-131656:4476(anonymous function) @ angular.js?c=220915-131656:4293getService @ angular.js?c=220915-131656:4435directiveIsMultiElement @ angular.js?c=220915-131656:8367collectDirectives @ angular.js?c=220915-131656:7742applyDirectivesToNode @ angular.js?c=220915-131656:8025compileNodes @ angular.js?c=220915-131656:7589compile @ angular.js?c=220915-131656:7496applyDirectivesToNode @ angular.js?c=220915-131656:7972compileNodes @ angular.js?c=220915-131656:7589compile @ angular.js?c=220915-131656:7496applyDirectivesToNode @ angular.js?c=220915-131656:7972compileNodes @ angular.js?c=220915-131656:7589compileNodes @ angular.js?c=220915-131656:7601compileNodes @ angular.js?c=220915-131656:7601compile @ angular.js?c=220915-131656:7496(anonymous function) @ angular-ui-router.js?c=220915-131656:4013invokeLinkFn @ angular.js?c=220915-131656:8780nodeLinkFn @ angular.js?c=220915-131656:8280compositeLinkFn @ angular.js?c=220915-131656:7671publicLinkFn @ angular.js?c=220915-131656:7546updateView @ angular-ui-router.js?c=220915-131656:3959(anonymous function) @ angular-ui-router.js?c=220915-131656:3921Scope.$broadcast @ angular.js?c=220915-131656:16244$state.transition.resolved.then.$state.transition @ angular-ui-router.js?c=220915-131656:3311processQueue @ angular.js?c=220915-131656:14678(anonymous function) @ angular.js?c=220915-131656:14694Scope.$eval @ angular.js?c=220915-131656:15922Scope.$digest @ angular.js?c=220915-131656:15733Scope.$apply @ angular.js?c=220915-131656:16030done @ angular.js?c=220915-131656:10545completeRequest @ angular.js?c=220915-131656:10717requestLoaded @ angular.js?c=220915-131656:10658
angular.js?c=220915-131656:12450 Raven: Exception  Error: [$cacheFactory:iid] CacheId 'cache' is already taken!
http://errors.angularjs.org/1.4.6/$cacheFactory/iid?p0=cache
    at http://localhost:3000/static/js/lib/angular.js?c=220915-131656:68:12
    at cacheFactory (http://localhost:3000/static/js/lib/angular.js?c=220915-131656:5899:38)
    at new <anonymous> (http://localhost:3000/static/js/angular/core/services/publicationService.js?c=220915-131656:16:27)
    at invoke (http://localhost:3000/static/js/lib/angular.js?c=220915-131656:4476:17)
    at Object.instantiate (http://localhost:3000/static/js/lib/angular.js?c=220915-131656:4484:27)
    at Object.<anonymous> (http://localhost:3000/static/js/lib/angular.js?c=220915-131656:4344:24)
    at Object.invoke (http://localhost:3000/static/js/lib/angular.js?c=220915-131656:4476:17)
    at Object.enforcedReturnValue [as $get] (http://localhost:3000/static/js/lib/angular.js?c=220915-131656:4328:37)
    at Object.invoke (http://localhost:3000/static/js/lib/angular.js?c=220915-131656:4476:17)
    at http://localhost:3000/static/js/lib/angular.js?c=220915-131656:4293:37 Object {culprit: "http://localhost:3000/publications/?page=1", extra: Object}(anonymous function) @ angular.js?c=220915-131656:12450captureException @ angular-raven.js?c=220915-131656:21$ExceptionHandler @ angular-raven.js?c=220915-131656:156(anonymous function) @ angular.js?c=220915-131656:7090forEach @ angular.js?c=220915-131656:336(anonymous function) @ angular.js?c=220915-131656:7069invoke @ angular.js?c=220915-131656:4476enforcedReturnValue @ angular.js?c=220915-131656:4328invoke @ angular.js?c=220915-131656:4476(anonymous function) @ angular.js?c=220915-131656:4293getService @ angular.js?c=220915-131656:4435directiveIsMultiElement @ angular.js?c=220915-131656:8367collectDirectives @ angular.js?c=220915-131656:7742compileNodes @ angular.js?c=220915-131656:7585compileNodes @ angular.js?c=220915-131656:7601compile @ angular.js?c=220915-131656:7496applyDirectivesToNode @ angular.js?c=220915-131656:7972compileNodes @ angular.js?c=220915-131656:7589compileNodes @ angular.js?c=220915-131656:7601compileNodes @ angular.js?c=220915-131656:7601compile @ angular.js?c=220915-131656:7496(anonymous function) @ angular-ui-router.js?c=220915-131656:4013invokeLinkFn @ angular.js?c=220915-131656:8780nodeLinkFn @ angular.js?c=220915-131656:8280compositeLinkFn @ angular.js?c=220915-131656:7671publicLinkFn @ angular.js?c=220915-131656:7546updateView @ angular-ui-router.js?c=220915-131656:3959(anonymous function) @ angular-ui-router.js?c=220915-131656:3921Scope.$broadcast @ angular.js?c=220915-131656:16244$state.transition.resolved.then.$state.transition @ angular-ui-router.js?c=220915-131656:3311processQueue @ angular.js?c=220915-131656:14678(anonymous function) @ angular.js?c=220915-131656:14694Scope.$eval @ angular.js?c=220915-131656:15922Scope.$digest @ angular.js?c=220915-131656:15733Scope.$apply @ angular.js?c=220915-131656:16030done @ angular.js?c=220915-131656:10545completeRequest @ angular.js?c=220915-131656:10717requestLoaded @ angular.js?c=220915-131656:10658
angular.js?c=220915-131656:12450 Error: [$cacheFactory:iid] CacheId 'cache' is already taken!
http://errors.angularjs.org/1.4.6/$cacheFactory/iid?p0=cache
    at http://localhost:3000/static/js/lib/angular.js?c=220915-131656:68:12
    at cacheFactory (http://localhost:3000/static/js/lib/angular.js?c=220915-131656:5899:38)
    at new <anonymous> (http://localhost:3000/static/js/angular/core/services/publicationService.js?c=220915-131656:16:27)
    at invoke (http://localhost:3000/static/js/lib/angular.js?c=220915-131656:4476:17)
    at Object.instantiate (http://localhost:3000/static/js/lib/angular.js?c=220915-131656:4484:27)
    at Object.<anonymous> (http://localhost:3000/static/js/lib/angular.js?c=220915-131656:4344:24)
    at Object.invoke (http://localhost:3000/static/js/lib/angular.js?c=220915-131656:4476:17)
    at Object.enforcedReturnValue [as $get] (http://localhost:3000/static/js/lib/angular.js?c=220915-131656:4328:37)
    at Object.invoke (http://localhost:3000/static/js/lib/angular.js?c=220915-131656:4476:17)
    at http://localhost:3000/static/js/lib/angular.js?c=220915-131656:4293:37 undefined(anonymous function) @ angular.js?c=220915-131656:12450(anonymous function) @ angular.js?c=220915-131656:9237$ExceptionHandler @ angular-raven.js?c=220915-131656:158(anonymous function) @ angular.js?c=220915-131656:7090forEach @ angular.js?c=220915-131656:336(anonymous function) @ angular.js?c=220915-131656:7069invoke @ angular.js?c=220915-131656:4476enforcedReturnValue @ angular.js?c=220915-131656:4328invoke @ angular.js?c=220915-131656:4476(anonymous function) @ angular.js?c=220915-131656:4293getService @ angular.js?c=220915-131656:4435directiveIsMultiElement @ angular.js?c=220915-131656:8367collectDirectives @ angular.js?c=220915-131656:7742compileNodes @ angular.js?c=220915-131656:7585compileNodes @ angular.js?c=220915-131656:7601compile @ angular.js?c=220915-131656:7496applyDirectivesToNode @ angular.js?c=220915-131656:7972compileNodes @ angular.js?c=220915-131656:7589compileNodes @ angular.js?c=220915-131656:7601compileNodes @ angular.js?c=220915-131656:7601compile @ angular.js?c=220915-131656:7496(anonymous function) @ angular-ui-router.js?c=220915-131656:4013invokeLinkFn @ angular.js?c=220915-131656:8780nodeLinkFn @ angular.js?c=220915-131656:8280compositeLinkFn @ angular.js?c=220915-131656:7671publicLinkFn @ angular.js?c=220915-131656:7546updateView @ angular-ui-router.js?c=220915-131656:3959(anonymous function) @ angular-ui-router.js?c=220915-131656:3921Scope.$broadcast @ angular.js?c=220915-131656:16244$state.transition.resolved.then.$state.transition @ angular-ui-router.js?c=220915-131656:3311processQueue @ angular.js?c=220915-131656:14678(anonymous function) @ angular.js?c=220915-131656:14694Scope.$eval @ angular.js?c=220915-131656:15922Scope.$digest @ angular.js?c=220915-131656:15733Scope.$apply @ angular.js?c=220915-131656:16030done @ angular.js?c=220915-131656:10545completeRequest @ angular.js?c=220915-131656:10717requestLoaded @ angular.js?c=220915-131656:10658
angular.js?c=220915-131656:12450 Raven: Exception  Error: [$cacheFactory:iid] CacheId 'cache' is already taken!
http://errors.angularjs.org/1.4.6/$cacheFactory/iid?p0=cache
    at http://localhost:3000/static/js/lib/angular.js?c=220915-131656:68:12
    at cacheFactory (http://localhost:3000/static/js/lib/angular.js?c=220915-131656:5899:38)
    at new <anonymous> (http://localhost:3000/static/js/angular/core/services/publicationService.js?c=220915-131656:16:27)
    at invoke (http://localhost:3000/static/js/lib/angular.js?c=220915-131656:4476:17)
    at Object.instantiate (http://localhost:3000/static/js/lib/angular.js?c=220915-131656:4484:27)
    at Object.<anonymous> (http://localhost:3000/static/js/lib/angular.js?c=220915-131656:4344:24)
    at Object.invoke (http://localhost:3000/static/js/lib/angular.js?c=220915-131656:4476:17)
    at Object.enforcedReturnValue [as $get] (http://localhost:3000/static/js/lib/angular.js?c=220915-131656:4328:37)
    at Object.invoke (http://localhost:3000/static/js/lib/angular.js?c=220915-131656:4476:17)
    at http://localhost:3000/static/js/lib/angular.js?c=220915-131656:4293:37 Object {culprit: "http://localhost:3000/publications/?page=1", extra: Object}(anonymous function) @ angular.js?c=220915-131656:12450captureException @ angular-raven.js?c=220915-131656:21$ExceptionHandler @ angular-raven.js?c=220915-131656:156invokeLinkFn @ angular.js?c=220915-131656:8782nodeLinkFn @ angular.js?c=220915-131656:8280compositeLinkFn @ angular.js?c=220915-131656:7671publicLinkFn @ angular.js?c=220915-131656:7546updateView @ angular-ui-router.js?c=220915-131656:3959(anonymous function) @ angular-ui-router.js?c=220915-131656:3921Scope.$broadcast @ angular.js?c=220915-131656:16244$state.transition.resolved.then.$state.transition @ angular-ui-router.js?c=220915-131656:3311processQueue @ angular.js?c=220915-131656:14678(anonymous function) @ angular.js?c=220915-131656:14694Scope.$eval @ angular.js?c=220915-131656:15922Scope.$digest @ angular.js?c=220915-131656:15733Scope.$apply @ angular.js?c=220915-131656:16030done @ angular.js?c=220915-131656:10545completeRequest @ angular.js?c=220915-131656:10717requestLoaded @ angular.js?c=220915-131656:10658
angular.js?c=220915-131656:12450 Error: [$cacheFactory:iid] CacheId 'cache' is already taken!
http://errors.angularjs.org/1.4.6/$cacheFactory/iid?p0=cache
    at http://localhost:3000/static/js/lib/angular.js?c=220915-131656:68:12
    at cacheFactory (http://localhost:3000/static/js/lib/angular.js?c=220915-131656:5899:38)
    at new <anonymous> (http://localhost:3000/static/js/angular/core/services/publicationService.js?c=220915-131656:16:27)
    at invoke (http://localhost:3000/static/js/lib/angular.js?c=220915-131656:4476:17)
    at Object.instantiate (http://localhost:3000/static/js/lib/angular.js?c=220915-131656:4484:27)
    at Object.<anonymous> (http://localhost:3000/static/js/lib/angular.js?c=220915-131656:4344:24)
    at Object.invoke (http://localhost:3000/static/js/lib/angular.js?c=220915-131656:4476:17)
    at Object.enforcedReturnValue [as $get] (http://localhost:3000/static/js/lib/angular.js?c=220915-131656:4328:37)
    at Object.invoke (http://localhost:3000/static/js/lib/angular.js?c=220915-131656:4476:17)
    at http://localhost:3000/static/js/lib/angular.js?c=220915-131656:4293:37 <div ui-view="mainView" class="main-view ng-scope" data-ng-animate="1">

Also bonus, here's what it would look like if it didn't have the extra logging:

ReferenceError: asd is not defined
    at new <anonymous> (http://localhost:3000/static/js/angular/core/services/publicationService.js?c=220915-131656:823:9)
    at invoke (http://localhost:3000/static/js/lib/angular.js?c=220915-131656:4476:17)
    at Object.instantiate (http://localhost:3000/static/js/lib/angular.js?c=220915-131656:4484:27)
    at Object.<anonymous> (http://localhost:3000/static/js/lib/angular.js?c=220915-131656:4344:24)
    at Object.invoke (http://localhost:3000/static/js/lib/angular.js?c=220915-131656:4476:17)
    at Object.enforcedReturnValue [as $get] (http://localhost:3000/static/js/lib/angular.js?c=220915-131656:4328:37)
    at Object.invoke (http://localhost:3000/static/js/lib/angular.js?c=220915-131656:4476:17)
    at http://localhost:3000/static/js/lib/angular.js?c=220915-131656:4293:37
    at getService (http://localhost:3000/static/js/lib/angular.js?c=220915-131656:4435:39)
    at Object.invoke (http://localhost:3000/static/js/lib/angular.js?c=220915-131656:4467:13) undefined(anonymous function) @ angular.js?c=220915-131656:12450(anonymous function) @ angular.js?c=220915-131656:9237$ExceptionHandler @ angular-raven.js?c=220915-131656:158(anonymous function) @ angular.js?c=220915-131656:7090forEach @ angular.js?c=220915-131656:336(anonymous function) @ angular.js?c=220915-131656:7069invoke @ angular.js?c=220915-131656:4476enforcedReturnValue @ angular.js?c=220915-131656:4328invoke @ angular.js?c=220915-131656:4476(anonymous function) @ angular.js?c=220915-131656:4293getService @ angular.js?c=220915-131656:4435directiveIsMultiElement @ angular.js?c=220915-131656:8367collectDirectives @ angular.js?c=220915-131656:7742applyDirectivesToNode @ angular.js?c=220915-131656:8025compileNodes @ angular.js?c=220915-131656:7589compile @ angular.js?c=220915-131656:7496applyDirectivesToNode @ angular.js?c=220915-131656:7972compileNodes @ angular.js?c=220915-131656:7589compile @ angular.js?c=220915-131656:7496applyDirectivesToNode @ angular.js?c=220915-131656:7972compileNodes @ angular.js?c=220915-131656:7589compileNodes @ angular.js?c=220915-131656:7601compileNodes @ angular.js?c=220915-131656:7601compile @ angular.js?c=220915-131656:7496(anonymous function) @ angular-ui-router.js?c=220915-131656:4013invokeLinkFn @ angular.js?c=220915-131656:8780nodeLinkFn @ angular.js?c=220915-131656:8280compositeLinkFn @ angular.js?c=220915-131656:7671publicLinkFn @ angular.js?c=220915-131656:7546updateView @ angular-ui-router.js?c=220915-131656:3959(anonymous function) @ angular-ui-router.js?c=220915-131656:3921Scope.$broadcast @ angular.js?c=220915-131656:16244$state.transition.resolved.then.$state.transition @ angular-ui-router.js?c=220915-131656:3311processQueue @ angular.js?c=220915-131656:14678(anonymous function) @ angular.js?c=220915-131656:14694Scope.$eval @ angular.js?c=220915-131656:15922Scope.$digest @ angular.js?c=220915-131656:15733Scope.$apply @ angular.js?c=220915-131656:16030done @ angular.js?c=220915-131656:10545completeRequest @ angular.js?c=220915-131656:10717requestLoaded @ angular.js?c=220915-131656:10658
angular.js?c=220915-131656:12450 Error: [$cacheFactory:iid] CacheId 'cache' is already taken!
http://errors.angularjs.org/1.4.6/$cacheFactory/iid?p0=cache
    at http://localhost:3000/static/js/lib/angular.js?c=220915-131656:68:12
    at cacheFactory (http://localhost:3000/static/js/lib/angular.js?c=220915-131656:5899:38)
    at new <anonymous> (http://localhost:3000/static/js/angular/core/services/publicationService.js?c=220915-131656:16:27)
    at invoke (http://localhost:3000/static/js/lib/angular.js?c=220915-131656:4476:17)
    at Object.instantiate (http://localhost:3000/static/js/lib/angular.js?c=220915-131656:4484:27)
    at Object.<anonymous> (http://localhost:3000/static/js/lib/angular.js?c=220915-131656:4344:24)
    at Object.invoke (http://localhost:3000/static/js/lib/angular.js?c=220915-131656:4476:17)
    at Object.enforcedReturnValue [as $get] (http://localhost:3000/static/js/lib/angular.js?c=220915-131656:4328:37)
    at Object.invoke (http://localhost:3000/static/js/lib/angular.js?c=220915-131656:4476:17)
    at http://localhost:3000/static/js/lib/angular.js?c=220915-131656:4293:37 undefined(anonymous function) @ angular.js?c=220915-131656:12450(anonymous function) @ angular.js?c=220915-131656:9237$ExceptionHandler @ angular-raven.js?c=220915-131656:158(anonymous function) @ angular.js?c=220915-131656:7090forEach @ angular.js?c=220915-131656:336(anonymous function) @ angular.js?c=220915-131656:7069invoke @ angular.js?c=220915-131656:4476enforcedReturnValue @ angular.js?c=220915-131656:4328invoke @ angular.js?c=220915-131656:4476(anonymous function) @ angular.js?c=220915-131656:4293getService @ angular.js?c=220915-131656:4435directiveIsMultiElement @ angular.js?c=220915-131656:8367collectDirectives @ angular.js?c=220915-131656:7742compileNodes @ angular.js?c=220915-131656:7585compileNodes @ angular.js?c=220915-131656:7601compile @ angular.js?c=220915-131656:7496applyDirectivesToNode @ angular.js?c=220915-131656:7972compileNodes @ angular.js?c=220915-131656:7589compileNodes @ angular.js?c=220915-131656:7601compileNodes @ angular.js?c=220915-131656:7601compile @ angular.js?c=220915-131656:7496(anonymous function) @ angular-ui-router.js?c=220915-131656:4013invokeLinkFn @ angular.js?c=220915-131656:8780nodeLinkFn @ angular.js?c=220915-131656:8280compositeLinkFn @ angular.js?c=220915-131656:7671publicLinkFn @ angular.js?c=220915-131656:7546updateView @ angular-ui-router.js?c=220915-131656:3959(anonymous function) @ angular-ui-router.js?c=220915-131656:3921Scope.$broadcast @ angular.js?c=220915-131656:16244$state.transition.resolved.then.$state.transition @ angular-ui-router.js?c=220915-131656:3311processQueue @ angular.js?c=220915-131656:14678(anonymous function) @ angular.js?c=220915-131656:14694Scope.$eval @ angular.js?c=220915-131656:15922Scope.$digest @ angular.js?c=220915-131656:15733Scope.$apply @ angular.js?c=220915-131656:16030done @ angular.js?c=220915-131656:10545completeRequest @ angular.js?c=220915-131656:10717requestLoaded @ angular.js?c=220915-131656:10658
angular.js?c=220915-131656:12450 Error: [$cacheFactory:iid] CacheId 'cache' is already taken!
http://errors.angularjs.org/1.4.6/$cacheFactory/iid?p0=cache
    at http://localhost:3000/static/js/lib/angular.js?c=220915-131656:68:12
    at cacheFactory (http://localhost:3000/static/js/lib/angular.js?c=220915-131656:5899:38)
    at new <anonymous> (http://localhost:3000/static/js/angular/core/services/publicationService.js?c=220915-131656:16:27)
    at invoke (http://localhost:3000/static/js/lib/angular.js?c=220915-131656:4476:17)
    at Object.instantiate (http://localhost:3000/static/js/lib/angular.js?c=220915-131656:4484:27)
    at Object.<anonymous> (http://localhost:3000/static/js/lib/angular.js?c=220915-131656:4344:24)
    at Object.invoke (http://localhost:3000/static/js/lib/angular.js?c=220915-131656:4476:17)
    at Object.enforcedReturnValue [as $get] (http://localhost:3000/static/js/lib/angular.js?c=220915-131656:4328:37)
    at Object.invoke (http://localhost:3000/static/js/lib/angular.js?c=220915-131656:4476:17)
    at http://localhost:3000/static/js/lib/angular.js?c=220915-131656:4293:37 <div ui-view="mainView" class="main-view ng-scope" data-ng-animate="1">

Issue in unit tests

For some reason, when using this module, errors like: Error: Unexpected request: GET http://domain.com/api/v1/blah/ is not being thrown in unit tests. Because of this, you'll not immediately notice that there's some http calls that you forgot to mock. It makes debugging issues in tests difficult.

Release 0.6.x?

Hey,
Bower currently has 0.5.11 up, which does not seem to be compatible with the new Raven API. Do you mind bumping to the latest version (0.6.2)?

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.