【问题标题】:aws cognito angular example: URIError: URI malformedaws cognito 角度示例:URIError:URI 格式错误
【发布时间】:2017-12-06 08:42:51
【问题描述】:

我正在尝试基于 Angular 2 的 aws cognito 示例应用程序,并注意到以下错误。

应用是https://github.com/awslabs/aws-cognito-angular2-quickstart

当我尝试从 Android 上的 Chrome 浏览器浏览到部署在 http://cognito.budilov.com/ 的此应用程序时,我收到以下错误。对可能发生的事情有任何想法吗?

vendor.f06d8c6….bundle.js:148 ERROR Error: Uncaught (in promise): URIError: 
URI malformed
URIError: URI malformed
at decodeURIComponent (<anonymous>)
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 (<anonymous>)
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)

更新:

这适用于 aws cognito 身份 js 文件的非缩小版本,但缩小版本仍然存在问题。

【问题讨论】:

  • 同样的问题,只出现在最新版本的chrome android

标签: angular amazon-web-services aws-cognito


【解决方案1】:

更新到最新版本的 aws-cognito-sdk.js 和 amazon-cognito-identity.js 解决了这个问题。

您可以从这个存储库中获取它们https://github.com/aws/amazon-cognito-identity-js

【讨论】:

    猜你喜欢
    • 2016-11-20
    • 2018-10-08
    • 2017-05-04
    • 1970-01-01
    • 1970-01-01
    • 2017-10-15
    • 1970-01-01
    • 1970-01-01
    • 2016-10-14
    相关资源
    最近更新 更多