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

Error when config doesn't exist #118

Closed
simison opened this issue Nov 5, 2015 · 1 comment
Closed

Error when config doesn't exist #118

simison opened this issue Nov 5, 2015 · 1 comment

Comments

@simison
Copy link
Contributor

simison commented Nov 5, 2015

Seeing errors because of this line:

if (!rejection.config.ignoreAuthModule) {

Similar to this situation: chieffancypants/angular-loading-bar#50

Basically I'm having this situation:

  • Loading from endpoint and expecting json response.
  • I get 502 (Bad Gateway) and bunch of html as a response
  • Because of <, Angular gives an error:
SyntaxError: Unexpected token <
    at Object.parse (native)
    at fromJson (http://localhost:3000/lib/angular/angular.js?c=1446764845080:1252:14)
    at defaultHttpResponseTransform (http://localhost:3000/lib/angular/angular.js?c=1446764845080:9414:16)
    at http://localhost:3000/lib/angular/angular.js?c=1446764845080:9505:12
    at forEach (http://localhost:3000/lib/angular/angular.js?c=1446764845080:336:20)
    at transformData (http://localhost:3000/lib/angular/angular.js?c=1446764845080:9504:3)
    at transformResponse (http://localhost:3000/lib/angular/angular.js?c=1446764845080:10276:23)
    at processQueue (http://localhost:3000/lib/angular/angular.js?c=1446764845080:14745:28)
    at http://localhost:3000/lib/angular/angular.js?c=1446764845080:14761:27
    at Scope.$eval (http://localhost:3000/lib/angular/angular.js?c=1446764845080:15989:28)

... but passes it onwards and is followed by this error:

TypeError: Cannot read property 'ignoreAuthModule' of undefined
    at responseError (http-auth-interceptor.js?c=1446764845080:60)
    at processQueue (angular.js?c=1446764845080:14745)
    at angular.js?c=1446764845080:14761
    at Scope.$eval (angular.js?c=1446764845080:15989)
    at Scope.$digest (angular.js?c=1446764845080:15800)
    at Scope.$apply (angular.js?c=1446764845080:16097)
    at done (angular.js?c=1446764845080:10546)
    at completeRequest (angular.js?c=1446764845080:10744)
    at XMLHttpRequest.requestLoaded (angular.js?c=1446764845080:10685)
@witoldsz
Copy link
Owner

Would #119 fix the problem?

witoldsz added a commit that referenced this issue Nov 24, 2015
Error when config doesn't exist, issue #118
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