angular-raven icon indicating copy to clipboard operation
angular-raven copied to clipboard

Development mode causes console errors to be thrown multiple times

Open crisbeto opened this issue 10 years ago • 5 comments

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">

crisbeto avatar Oct 23 '15 08:10 crisbeto

I've noticed this bug as well

giltotherescue avatar Aug 18 '16 18:08 giltotherescue

screenshot from 2017-07-21 17-08-03

nice..... NOT!

joshribakoff avatar Jul 22 '17 00:07 joshribakoff

can you make a PR

PatrickJS avatar Jul 27 '17 20:07 PatrickJS

I apologize it appears I filed on the wrong project, I filed a new issue in the proper project: https://github.com/getsentry/raven-js/issues/1000

Since that one is borked, I've actually switched to your library. It appears to work, but the error is intermittent so I'm not sure if your library has the same problem or not. I'll let you know if it does. I'm not sure how to fix this. I'm the biggest AngularJS "fan boy", but even I feel like the error handling is absolutely terrible in Angular.

joshribakoff avatar Jul 30 '17 05:07 joshribakoff

thanks, let me know if there is anything that I can do if there is the same problem here

PatrickJS avatar Jul 30 '17 18:07 PatrickJS