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

JS looping errors after successful login #12

Closed
armstrhb opened this issue Aug 14, 2015 · 7 comments
Closed

JS looping errors after successful login #12

armstrhb opened this issue Aug 14, 2015 · 7 comments
Assignees
Labels
Milestone

Comments

@armstrhb
Copy link

Hello Lavagna team,

We've set up Lavagna 1.0.0 (also tried with the new 1.0.1 published today) within Tomcat8. Went through set up successfully, but after login, the javascript console logs are spammed with the following error (as if through loop):

app.js:1452 Uncaught Error: [$rootScope:infdig] http://errors.angularjs.org/1.2.28/$rootScope/infdig?p0=10&p1=%5B%5B%22fn%3…  D!1%3Breturn%20n%7D%3B%20newVal%3A%2030041%3B%20oldVal%3A%2030040%22%5D%5D(anonymous function) @ app.js:1452$get.h.$digest @ app.js:1557(anonymous function) @ app.js:1559e @ app.js:1483(anonymous function) @ app.js:1487
app.js:1538 Error: Failed to execute 'pushState' on 'History': A history state object with URL 'http:' cannot be created in a document with origin 'http://techutilities.bcbssc.com'.
    at Error (native)
    at se.h.url (http://techutilities.bcbssc.com/lavagna/resource/app.js:1485:275)
    at http://techutilities.bcbssc.com/lavagna/resource/app.js:1537:48
    at h.$get.h.$eval (http://techutilities.bcbssc.com/lavagna/resource/app.js:1559:32)
    at h.$get.h.$digest (http://techutilities.bcbssc.com/lavagna/resource/app.js:1556:117)
    at http://techutilities.bcbssc.com/lavagna/resource/app.js:1559:143
    at e (http://techutilities.bcbssc.com/lavagna/resource/app.js:1483:497)
    at http://techutilities.bcbssc.com/lavagna/resource/app.js:1487:235(anonymous function) @ app.js:1538$get @ app.js:1514$get.h.$digest @ app.js:1556(anonymous function) @ app.js:1559e @ app.js:1483(anonymous function) @ app.js:1487

I followed http://help.lavagna.io/ to setup the environment, and accepted the proposed URL for the base URL. Some googling (link) (link) suggests that this is angular shutting down the history push, thinking it's cross domain; however the base URL chosen is accurate to the requests coming in for our local installation: http://techutilities.bcbssc.com/lavagna

The link that I'm redirected to after login is: http://techutilities.bcbssc.com/lavagna/, here's a screenshot:

image

Looks like something from a URL resources map isn't quick linking correctly.

@syjer
Copy link
Member

syjer commented Aug 14, 2015

@armstrhb

Thanks for the report, I'll try to fix the issue ASAP.

@syjer syjer added the bug label Aug 14, 2015
@syjer
Copy link
Member

syjer commented Aug 14, 2015

@armstrhb Ok, I'm able to reproduce the bug locally, sorry about not testing the application on tomcat 8 :(. I'll do a fix and a release.

@syjer
Copy link
Member

syjer commented Aug 14, 2015

(the issue is present on tomcat7 too)

@syjer
Copy link
Member

syjer commented Aug 14, 2015

Ok, the issue was caused by the fact that tomcat was serving the unprocessed template directly, bypassing the controller that was serving the root directory of the application.

@armstrhb Thanks for the opening this issue. I'll do a 1.0.2 release.

@syjer syjer added this to the 1.0.2 milestone Aug 14, 2015
@syjer syjer self-assigned this Aug 14, 2015
@syjer
Copy link
Member

syjer commented Aug 14, 2015

@armstrhb
Copy link
Author

@syjer thanks for the quick turnaround, issue is corrected. Thanks again!

@syjer
Copy link
Member

syjer commented Aug 15, 2015

@armstrhb Thanks for the bug report :).

@syjer syjer closed this as completed Aug 15, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants