amazon-archives / aws-cognito-angular-quickstart

An Angular(v5)-based QuickStart single-page app utilizing Amazon Cognito, S3, and DynamoDB (Serverless architecture)
https://cognito.budilov.com
Apache License 2.0
689 stars 302 forks source link

Doesn't work from android chrome: URIError: URI malformed #81

Closed scheler closed 7 years ago

scheler commented 7 years ago

When I login at cognito.budilov.com/home, the profile page loads but none of the other links in the menu work. I see the following error in the console.

vendor.f06d8c6….bundle.js:148 ERROR Error: Uncaught (in promise): URIError: URI malformed URIError: URI malformed at decodeURIComponent () at Object.fromBits (sjcl.js:11) at e.value (amazon-cognito-identity.min.js:19) at e.value (amazon-cognito-identity.min.js:19) at e.value (amazon-cognito-identity.min.js:19) at l.O7AO.l.isAuthenticated (main.fd38a9f….bundle.js:1) at new l (main.fd38a9f….bundle.js:1) at Ze (vendor.f06d8c6….bundle.js:225) at ze (vendor.f06d8c6….bundle.js:225) at On (vendor.f06d8c6….bundle.js:239) at _n (vendor.f06d8c6….bundle.js:239) at Object.Hn [as createRootView] (vendor.f06d8c6….bundle.js:239) at e.create (vendor.f06d8c6….bundle.js:302) at e.create (vendor.f06d8c6….bundle.js:281) at t.createComponent (vendor.f06d8c6….bundle.js:302) at decodeURIComponent () at Object.fromBits (sjcl.js:11) at e.value (amazon-cognito-identity.min.js:19) at e.value (amazon-cognito-identity.min.js:19) at e.value (amazon-cognito-identity.min.js:19) at l.O7AO.l.isAuthenticated (main.fd38a9f….bundle.js:1) at new l (main.fd38a9f….bundle.js:1) at Ze (vendor.f06d8c6….bundle.js:225) at ze (vendor.f06d8c6….bundle.js:225) at On (vendor.f06d8c6….bundle.js:239) at _n (vendor.f06d8c6….bundle.js:239) at Object.Hn [as createRootView] (vendor.f06d8c6….bundle.js:239) at e.create (vendor.f06d8c6….bundle.js:302) at e.create (vendor.f06d8c6….bundle.js:281) at t.createComponent (vendor.f06d8c6….bundle.js:302) at v (vendor.f06d8c6….bundle.js:697) at p (vendor.f06d8c6….bundle.js:697) at p (vendor.f06d8c6….bundle.js:697) at vendor.f06d8c6….bundle.js:697 at t.invokeTask (vendor.f06d8c6….bundle.js:697) at Object.onInvokeTask (vendor.f06d8c6….bundle.js:281) at t.invokeTask (vendor.f06d8c6….bundle.js:697) at e.runTask (vendor.f06d8c6….bundle.js:697) at a (vendor.f06d8c6….bundle.js:697) at HTMLAnchorElement.invoke (vendor.f06d8c6….bundle.js:697)

Can someone take a look?

vbudilov commented 7 years ago

Try it now (use an incognito window). I've uploaded the latest version just now, and it works on my device.

scholtzm commented 7 years ago

@vbudilov Sorry to hijack this issue. We ran into this problem just couple hours ago in our app. Would you mind sharing your solution?

Seems like the recent update of Android System WebView from 30th June introduced this bug.

vbudilov commented 7 years ago

@scholtzm , not sure which of the dozens changes actually made this work, sorry. Try going to cognito.budilov.com and seeing if that works for you. If it does, then pull the latest code.

scholtzm commented 7 years ago

I have found a fix and the issue is being discussed here:

https://github.com/bitwiseshiftleft/sjcl/issues/338

scheler commented 7 years ago

Yes this works fine with the new min file. You can close the ticket if no further action is required from your side.