Skip to content

Instantly share code, notes, and snippets.

@chengyin
Created May 28, 2013 01:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chengyin/5660043 to your computer and use it in GitHub Desktop.
Save chengyin/5660043 to your computer and use it in GitHub Desktop.
TypeError: Cannot call method 'map' of undefined
at Object.getTokens (http://localhost:3000/components/angular-ui-calendar/src/calendar.js:46:24)
at Object.Scope.$digest (http://localhost:3000/components/angular/angular.js:7935:38)
at Object.Scope.$apply (http://localhost:3000/components/angular/angular.js:8143:24)
at done (http://localhost:3000/components/angular/angular.js:9170:20)
at completeRequest (http://localhost:3000/components/angular/angular.js:9333:7)
at XMLHttpRequest.xhr.onreadystatechange (http://localhost:3000/components/angular/angular.js:9303:11) angular.js:5754
TypeError: Cannot read property 'length' of undefined
at allEvents (http://localhost:3000/components/angular-ui-calendar/src/calendar.js:123:41)
at Object.getTokens (http://localhost:3000/components/angular-ui-calendar/src/calendar.js:45:57)
at Object.Scope.$digest (http://localhost:3000/components/angular/angular.js:7935:38)
at Object.Scope.$apply (http://localhost:3000/components/angular/angular.js:8143:24)
at done (http://localhost:3000/components/angular/angular.js:9170:20)
at completeRequest (http://localhost:3000/components/angular/angular.js:9333:7)
at XMLHttpRequest.xhr.onreadystatechange (http://localhost:3000/components/angular/angular.js:9303:11) angular.js:5754
TypeError: Cannot call method 'map' of undefined
at Object.getTokens (http://localhost:3000/components/angular-ui-calendar/src/calendar.js:46:24)
at Object.Scope.$digest (http://localhost:3000/components/angular/angular.js:7935:38)
at Object.Scope.$apply (http://localhost:3000/components/angular/angular.js:8143:24)
at done (http://localhost:3000/components/angular/angular.js:9170:20)
at completeRequest (http://localhost:3000/components/angular/angular.js:9333:7)
at XMLHttpRequest.xhr.onreadystatechange (http://localhost:3000/components/angular/angular.js:9303:11) angular.js:5754
TypeError: Cannot read property 'length' of undefined
at allEvents (http://localhost:3000/components/angular-ui-calendar/src/calendar.js:123:41)
at Object.getTokens (http://localhost:3000/components/angular-ui-calendar/src/calendar.js:45:57)
at Object.Scope.$digest (http://localhost:3000/components/angular/angular.js:7935:38)
at Object.Scope.$apply (http://localhost:3000/components/angular/angular.js:8143:24)
at done (http://localhost:3000/components/angular/angular.js:9170:20)
at completeRequest (http://localhost:3000/components/angular/angular.js:9333:7)
at XMLHttpRequest.xhr.onreadystatechange (http://localhost:3000/components/angular/angular.js:9303:11) angular.js:5754
TypeError: Cannot call method 'map' of undefined
at Object.getTokens (http://localhost:3000/components/angular-ui-calendar/src/calendar.js:46:24)
at Object.Scope.$digest (http://localhost:3000/components/angular/angular.js:7935:38)
at Object.Scope.$apply (http://localhost:3000/components/angular/angular.js:8143:24)
at done (http://localhost:3000/components/angular/angular.js:9170:20)
at completeRequest (http://localhost:3000/components/angular/angular.js:9333:7)
at XMLHttpRequest.xhr.onreadystatechange (http://localhost:3000/components/angular/angular.js:9303:11) angular.js:5754
TypeError: Cannot read property 'length' of undefined
at allEvents (http://localhost:3000/components/angular-ui-calendar/src/calendar.js:123:41)
at Object.getTokens (http://localhost:3000/components/angular-ui-calendar/src/calendar.js:45:57)
at Object.Scope.$digest (http://localhost:3000/components/angular/angular.js:7935:38)
at Object.Scope.$apply (http://localhost:3000/components/angular/angular.js:8143:24)
at done (http://localhost:3000/components/angular/angular.js:9170:20)
at completeRequest (http://localhost:3000/components/angular/angular.js:9333:7)
at XMLHttpRequest.xhr.onreadystatechange (http://localhost:3000/components/angular/angular.js:9303:11) angular.js:5754
TypeError: Cannot call method 'map' of undefined
at Object.getTokens (http://localhost:3000/components/angular-ui-calendar/src/calendar.js:46:24)
at Object.Scope.$digest (http://localhost:3000/components/angular/angular.js:7935:38)
at Object.Scope.$apply (http://localhost:3000/components/angular/angular.js:8143:24)
at done (http://localhost:3000/components/angular/angular.js:9170:20)
at completeRequest (http://localhost:3000/components/angular/angular.js:9333:7)
at XMLHttpRequest.xhr.onreadystatechange (http://localhost:3000/components/angular/angular.js:9303:11) angular.js:5754
TypeError: Cannot read property 'length' of undefined
at allEvents (http://localhost:3000/components/angular-ui-calendar/src/calendar.js:123:41)
at Object.getTokens (http://localhost:3000/components/angular-ui-calendar/src/calendar.js:45:57)
at Object.Scope.$digest (http://localhost:3000/components/angular/angular.js:7935:38)
at Object.Scope.$apply (http://localhost:3000/components/angular/angular.js:8143:24)
at done (http://localhost:3000/components/angular/angular.js:9170:20)
at completeRequest (http://localhost:3000/components/angular/angular.js:9333:7)
at XMLHttpRequest.xhr.onreadystatechange (http://localhost:3000/components/angular/angular.js:9303:11) angular.js:5754
TypeError: Cannot call method 'map' of undefined
at Object.getTokens (http://localhost:3000/components/angular-ui-calendar/src/calendar.js:46:24)
at Object.Scope.$digest (http://localhost:3000/components/angular/angular.js:7935:38)
at Object.Scope.$apply (http://localhost:3000/components/angular/angular.js:8143:24)
at done (http://localhost:3000/components/angular/angular.js:9170:20)
at completeRequest (http://localhost:3000/components/angular/angular.js:9333:7)
at XMLHttpRequest.xhr.onreadystatechange (http://localhost:3000/components/angular/angular.js:9303:11) angular.js:5754
TypeError: Cannot read property 'length' of undefined
at allEvents (http://localhost:3000/components/angular-ui-calendar/src/calendar.js:123:41)
at Object.getTokens (http://localhost:3000/components/angular-ui-calendar/src/calendar.js:45:57)
at Object.Scope.$digest (http://localhost:3000/components/angular/angular.js:7935:38)
at Object.Scope.$apply (http://localhost:3000/components/angular/angular.js:8143:24)
at done (http://localhost:3000/components/angular/angular.js:9170:20)
at completeRequest (http://localhost:3000/components/angular/angular.js:9333:7)
at XMLHttpRequest.xhr.onreadystatechange (http://localhost:3000/components/angular/angular.js:9303:11) angular.js:5754
TypeError: Cannot call method 'map' of undefined
at Object.getTokens (http://localhost:3000/components/angular-ui-calendar/src/calendar.js:46:24)
at Object.Scope.$digest (http://localhost:3000/components/angular/angular.js:7935:38)
at Object.Scope.$apply (http://localhost:3000/components/angular/angular.js:8143:24)
at done (http://localhost:3000/components/angular/angular.js:9170:20)
at completeRequest (http://localhost:3000/components/angular/angular.js:9333:7)
at XMLHttpRequest.xhr.onreadystatechange (http://localhost:3000/components/angular/angular.js:9303:11) angular.js:5754
TypeError: Cannot read property 'length' of undefined
at allEvents (http://localhost:3000/components/angular-ui-calendar/src/calendar.js:123:41)
at Object.getTokens (http://localhost:3000/components/angular-ui-calendar/src/calendar.js:45:57)
at Object.Scope.$digest (http://localhost:3000/components/angular/angular.js:7935:38)
at Object.Scope.$apply (http://localhost:3000/components/angular/angular.js:8143:24)
at done (http://localhost:3000/components/angular/angular.js:9170:20)
at completeRequest (http://localhost:3000/components/angular/angular.js:9333:7)
at XMLHttpRequest.xhr.onreadystatechange (http://localhost:3000/components/angular/angular.js:9303:11) angular.js:5754
TypeError: Cannot call method 'map' of undefined
at Object.getTokens (http://localhost:3000/components/angular-ui-calendar/src/calendar.js:46:24)
at Object.Scope.$digest (http://localhost:3000/components/angular/angular.js:7935:38)
at Object.Scope.$apply (http://localhost:3000/components/angular/angular.js:8143:24)
at done (http://localhost:3000/components/angular/angular.js:9170:20)
at completeRequest (http://localhost:3000/components/angular/angular.js:9333:7)
at XMLHttpRequest.xhr.onreadystatechange (http://localhost:3000/components/angular/angular.js:9303:11) angular.js:5754
TypeError: Cannot read property 'length' of undefined
at allEvents (http://localhost:3000/components/angular-ui-calendar/src/calendar.js:123:41)
at Object.getTokens (http://localhost:3000/components/angular-ui-calendar/src/calendar.js:45:57)
at Object.Scope.$digest (http://localhost:3000/components/angular/angular.js:7935:38)
at Object.Scope.$apply (http://localhost:3000/components/angular/angular.js:8143:24)
at done (http://localhost:3000/components/angular/angular.js:9170:20)
at completeRequest (http://localhost:3000/components/angular/angular.js:9333:7)
at XMLHttpRequest.xhr.onreadystatechange (http://localhost:3000/components/angular/angular.js:9303:11) angular.js:5754
TypeError: Cannot call method 'map' of undefined
at Object.getTokens (http://localhost:3000/components/angular-ui-calendar/src/calendar.js:46:24)
at Object.Scope.$digest (http://localhost:3000/components/angular/angular.js:7935:38)
at Object.Scope.$apply (http://localhost:3000/components/angular/angular.js:8143:24)
at done (http://localhost:3000/components/angular/angular.js:9170:20)
at completeRequest (http://localhost:3000/components/angular/angular.js:9333:7)
at XMLHttpRequest.xhr.onreadystatechange (http://localhost:3000/components/angular/angular.js:9303:11) angular.js:5754
TypeError: Cannot read property 'length' of undefined
at allEvents (http://localhost:3000/components/angular-ui-calendar/src/calendar.js:123:41)
at Object.getTokens (http://localhost:3000/components/angular-ui-calendar/src/calendar.js:45:57)
at Object.Scope.$digest (http://localhost:3000/components/angular/angular.js:7935:38)
at Object.Scope.$apply (http://localhost:3000/components/angular/angular.js:8143:24)
at done (http://localhost:3000/components/angular/angular.js:9170:20)
at completeRequest (http://localhost:3000/components/angular/angular.js:9333:7)
at XMLHttpRequest.xhr.onreadystatechange (http://localhost:3000/components/angular/angular.js:9303:11) angular.js:5754
TypeError: Cannot call method 'map' of undefined
at Object.getTokens (http://localhost:3000/components/angular-ui-calendar/src/calendar.js:46:24)
at Object.Scope.$digest (http://localhost:3000/components/angular/angular.js:7935:38)
at Object.Scope.$apply (http://localhost:3000/components/angular/angular.js:8143:24)
at done (http://localhost:3000/components/angular/angular.js:9170:20)
at completeRequest (http://localhost:3000/components/angular/angular.js:9333:7)
at XMLHttpRequest.xhr.onreadystatechange (http://localhost:3000/components/angular/angular.js:9303:11) angular.js:5754
TypeError: Cannot read property 'length' of undefined
at allEvents (http://localhost:3000/components/angular-ui-calendar/src/calendar.js:123:41)
at Object.getTokens (http://localhost:3000/components/angular-ui-calendar/src/calendar.js:45:57)
at Object.Scope.$digest (http://localhost:3000/components/angular/angular.js:7935:38)
at Object.Scope.$apply (http://localhost:3000/components/angular/angular.js:8143:24)
at done (http://localhost:3000/components/angular/angular.js:9170:20)
at completeRequest (http://localhost:3000/components/angular/angular.js:9333:7)
at XMLHttpRequest.xhr.onreadystatechange (http://localhost:3000/components/angular/angular.js:9303:11) angular.js:5754
TypeError: Cannot call method 'map' of undefined
at Object.getTokens (http://localhost:3000/components/angular-ui-calendar/src/calendar.js:46:24)
at Object.Scope.$digest (http://localhost:3000/components/angular/angular.js:7935:38)
at Object.Scope.$apply (http://localhost:3000/components/angular/angular.js:8143:24)
at done (http://localhost:3000/components/angular/angular.js:9170:20)
at completeRequest (http://localhost:3000/components/angular/angular.js:9333:7)
at XMLHttpRequest.xhr.onreadystatechange (http://localhost:3000/components/angular/angular.js:9303:11) angular.js:5754
TypeError: Cannot read property 'length' of undefined
at allEvents (http://localhost:3000/components/angular-ui-calendar/src/calendar.js:123:41)
at Object.getTokens (http://localhost:3000/components/angular-ui-calendar/src/calendar.js:45:57)
at Object.Scope.$digest (http://localhost:3000/components/angular/angular.js:7935:38)
at Object.Scope.$apply (http://localhost:3000/components/angular/angular.js:8143:24)
at done (http://localhost:3000/components/angular/angular.js:9170:20)
at completeRequest (http://localhost:3000/components/angular/angular.js:9333:7)
at XMLHttpRequest.xhr.onreadystatechange (http://localhost:3000/components/angular/angular.js:9303:11) angular.js:5754
TypeError: Cannot call method 'map' of undefined
at Object.getTokens (http://localhost:3000/components/angular-ui-calendar/src/calendar.js:46:24)
at Object.Scope.$digest (http://localhost:3000/components/angular/angular.js:7935:38)
at Object.Scope.$apply (http://localhost:3000/components/angular/angular.js:8143:24)
at done (http://localhost:3000/components/angular/angular.js:9170:20)
at completeRequest (http://localhost:3000/components/angular/angular.js:9333:7)
at XMLHttpRequest.xhr.onreadystatechange (http://localhost:3000/components/angular/angular.js:9303:11) angular.js:5754
TypeError: Cannot read property 'length' of undefined
at allEvents (http://localhost:3000/components/angular-ui-calendar/src/calendar.js:123:41)
at Object.getTokens (http://localhost:3000/components/angular-ui-calendar/src/calendar.js:45:57)
at Object.Scope.$digest (http://localhost:3000/components/angular/angular.js:7935:38)
at Object.Scope.$apply (http://localhost:3000/components/angular/angular.js:8143:24)
at done (http://localhost:3000/components/angular/angular.js:9170:20)
at completeRequest (http://localhost:3000/components/angular/angular.js:9333:7)
at XMLHttpRequest.xhr.onreadystatechange (http://localhost:3000/components/angular/angular.js:9303:11) angular.js:5754
TypeError: Cannot call method 'map' of undefined
at Object.getTokens (http://localhost:3000/components/angular-ui-calendar/src/calendar.js:46:24)
at Object.Scope.$digest (http://localhost:3000/components/angular/angular.js:7935:38)
at Object.Scope.$apply (http://localhost:3000/components/angular/angular.js:8143:24)
at done (http://localhost:3000/components/angular/angular.js:9170:20)
at completeRequest (http://localhost:3000/components/angular/angular.js:9333:7)
at XMLHttpRequest.xhr.onreadystatechange (http://localhost:3000/components/angular/angular.js:9303:11) angular.js:5754
TypeError: Cannot read property 'length' of undefined
at allEvents (http://localhost:3000/components/angular-ui-calendar/src/calendar.js:123:41)
at Object.getTokens (http://localhost:3000/components/angular-ui-calendar/src/calendar.js:45:57)
at Object.Scope.$digest (http://localhost:3000/components/angular/angular.js:7935:38)
at Object.Scope.$apply (http://localhost:3000/components/angular/angular.js:8143:24)
at done (http://localhost:3000/components/angular/angular.js:9170:20)
at completeRequest (http://localhost:3000/components/angular/angular.js:9333:7)
at XMLHttpRequest.xhr.onreadystatechange (http://localhost:3000/components/angular/angular.js:9303:11) angular.js:5754
TypeError: Cannot call method 'map' of undefined
at Object.getTokens (http://localhost:3000/components/angular-ui-calendar/src/calendar.js:46:24)
at Object.Scope.$digest (http://localhost:3000/components/angular/angular.js:7935:38)
at Object.Scope.$apply (http://localhost:3000/components/angular/angular.js:8143:24)
at done (http://localhost:3000/components/angular/angular.js:9170:20)
at completeRequest (http://localhost:3000/components/angular/angular.js:9333:7)
at XMLHttpRequest.xhr.onreadystatechange (http://localhost:3000/components/angular/angular.js:9303:11) angular.js:5754
TypeError: Cannot read property 'length' of undefined
at allEvents (http://localhost:3000/components/angular-ui-calendar/src/calendar.js:123:41)
at Object.getTokens (http://localhost:3000/components/angular-ui-calendar/src/calendar.js:45:57)
at Object.Scope.$digest (http://localhost:3000/components/angular/angular.js:7935:38)
at Object.Scope.$apply (http://localhost:3000/components/angular/angular.js:8143:24)
at done (http://localhost:3000/components/angular/angular.js:9170:20)
at completeRequest (http://localhost:3000/components/angular/angular.js:9333:7)
at XMLHttpRequest.xhr.onreadystatechange (http://localhost:3000/components/angular/angular.js:9303:11) angular.js:5754
TypeError: Cannot call method 'map' of undefined
at Object.getTokens (http://localhost:3000/components/angular-ui-calendar/src/calendar.js:46:24)
at Object.Scope.$digest (http://localhost:3000/components/angular/angular.js:7935:38)
at Object.Scope.$apply (http://localhost:3000/components/angular/angular.js:8143:24)
at done (http://localhost:3000/components/angular/angular.js:9170:20)
at completeRequest (http://localhost:3000/components/angular/angular.js:9333:7)
at XMLHttpRequest.xhr.onreadystatechange (http://localhost:3000/components/angular/angular.js:9303:11) angular.js:5754
TypeError: Cannot read property 'length' of undefined
at allEvents (http://localhost:3000/components/angular-ui-calendar/src/calendar.js:123:41)
at Object.getTokens (http://localhost:3000/components/angular-ui-calendar/src/calendar.js:45:57)
at Object.Scope.$digest (http://localhost:3000/components/angular/angular.js:7935:38)
at Object.Scope.$apply (http://localhost:3000/components/angular/angular.js:8143:24)
at done (http://localhost:3000/components/angular/angular.js:9170:20)
at completeRequest (http://localhost:3000/components/angular/angular.js:9333:7)
at XMLHttpRequest.xhr.onreadystatechange (http://localhost:3000/components/angular/angular.js:9303:11) angular.js:5754
TypeError: Cannot call method 'map' of undefined
at Object.getTokens (http://localhost:3000/components/angular-ui-calendar/src/calendar.js:46:24)
at Object.Scope.$digest (http://localhost:3000/components/angular/angular.js:7935:38)
at Object.Scope.$apply (http://localhost:3000/components/angular/angular.js:8143:24)
at done (http://localhost:3000/components/angular/angular.js:9170:20)
at completeRequest (http://localhost:3000/components/angular/angular.js:9333:7)
at XMLHttpRequest.xhr.onreadystatechange (http://localhost:3000/components/angular/angular.js:9303:11) angular.js:5754
TypeError: Cannot read property 'length' of undefined
at allEvents (http://localhost:3000/components/angular-ui-calendar/src/calendar.js:123:41)
at Object.getTokens (http://localhost:3000/components/angular-ui-calendar/src/calendar.js:45:57)
at Object.Scope.$digest (http://localhost:3000/components/angular/angular.js:7935:38)
at Object.Scope.$apply (http://localhost:3000/components/angular/angular.js:8143:24)
at done (http://localhost:3000/components/angular/angular.js:9170:20)
at completeRequest (http://localhost:3000/components/angular/angular.js:9333:7)
at XMLHttpRequest.xhr.onreadystatechange (http://localhost:3000/components/angular/angular.js:9303:11) angular.js:5754
TypeError: Cannot call method 'map' of undefined
at Object.getTokens (http://localhost:3000/components/angular-ui-calendar/src/calendar.js:46:24)
at Object.Scope.$digest (http://localhost:3000/components/angular/angular.js:7935:38)
at Object.Scope.$apply (http://localhost:3000/components/angular/angular.js:8143:24)
at done (http://localhost:3000/components/angular/angular.js:9170:20)
at completeRequest (http://localhost:3000/components/angular/angular.js:9333:7)
at XMLHttpRequest.xhr.onreadystatechange (http://localhost:3000/components/angular/angular.js:9303:11) angular.js:5754
TypeError: Cannot read property 'length' of undefined
at allEvents (http://localhost:3000/components/angular-ui-calendar/src/calendar.js:123:41)
at Object.getTokens (http://localhost:3000/components/angular-ui-calendar/src/calendar.js:45:57)
at Object.Scope.$digest (http://localhost:3000/components/angular/angular.js:7935:38)
at Object.Scope.$apply (http://localhost:3000/components/angular/angular.js:8143:24)
at done (http://localhost:3000/components/angular/angular.js:9170:20)
at completeRequest (http://localhost:3000/components/angular/angular.js:9333:7)
at XMLHttpRequest.xhr.onreadystatechange (http://localhost:3000/components/angular/angular.js:9303:11) angular.js:5754
TypeError: Cannot call method 'map' of undefined
at Object.getTokens (http://localhost:3000/components/angular-ui-calendar/src/calendar.js:46:24)
at Object.Scope.$digest (http://localhost:3000/components/angular/angular.js:7935:38)
at Object.Scope.$apply (http://localhost:3000/components/angular/angular.js:8143:24)
at done (http://localhost:3000/components/angular/angular.js:9170:20)
at completeRequest (http://localhost:3000/components/angular/angular.js:9333:7)
at XMLHttpRequest.xhr.onreadystatechange (http://localhost:3000/components/angular/angular.js:9303:11) angular.js:5754
TypeError: Cannot read property 'length' of undefined
at allEvents (http://localhost:3000/components/angular-ui-calendar/src/calendar.js:123:41)
at Object.getTokens (http://localhost:3000/components/angular-ui-calendar/src/calendar.js:45:57)
at Object.Scope.$digest (http://localhost:3000/components/angular/angular.js:7935:38)
at Object.Scope.$apply (http://localhost:3000/components/angular/angular.js:8143:24)
at done (http://localhost:3000/components/angular/angular.js:9170:20)
at completeRequest (http://localhost:3000/components/angular/angular.js:9333:7)
at XMLHttpRequest.xhr.onreadystatechange (http://localhost:3000/components/angular/angular.js:9303:11) angular.js:5754
TypeError: Cannot call method 'map' of undefined
at Object.getTokens (http://localhost:3000/components/angular-ui-calendar/src/calendar.js:46:24)
at Object.Scope.$digest (http://localhost:3000/components/angular/angular.js:7935:38)
at Object.Scope.$apply (http://localhost:3000/components/angular/angular.js:8143:24)
at done (http://localhost:3000/components/angular/angular.js:9170:20)
at completeRequest (http://localhost:3000/components/angular/angular.js:9333:7)
at XMLHttpRequest.xhr.onreadystatechange (http://localhost:3000/components/angular/angular.js:9303:11) angular.js:5754
TypeError: Cannot read property 'length' of undefined
at allEvents (http://localhost:3000/components/angular-ui-calendar/src/calendar.js:123:41)
at Object.getTokens (http://localhost:3000/components/angular-ui-calendar/src/calendar.js:45:57)
at Object.Scope.$digest (http://localhost:3000/components/angular/angular.js:7935:38)
at Object.Scope.$apply (http://localhost:3000/components/angular/angular.js:8143:24)
at done (http://localhost:3000/components/angular/angular.js:9170:20)
at completeRequest (http://localhost:3000/components/angular/angular.js:9333:7)
at XMLHttpRequest.xhr.onreadystatechange (http://localhost:3000/components/angular/angular.js:9303:11) angular.js:5754
@pochi
Copy link

pochi commented Jul 6, 2013

Hi, chengyin. I'm getting the same issue.
Can you solve this problem?

@royts
Copy link

royts commented Oct 24, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment