Ionic2-starter-aws: Error: Missing credentials in config


#1

Hello,
I am using the same aws starter template. I have followed the instruction from the same repo https://github.com/driftyco/ionic2-starter-aws to try it out.
After copied over the aws-config.js file from aws-mobile-hub to local folder, it is working.
I can register and login by using the starter app.
Unfortunately, I got an error attempting to load “task-item” in task-page as below after successful login.
Error: Missing credentials in config
at XMLHttpRequest. (aws-sdk.min.js:37)
at t.invokeTask (polyfills.js:3)
at Object.onInvokeTask (core.es5.js:4119)
at t.invokeTask (polyfills.js:3)
at r.runTask (polyfills.js:3)
at XMLHttpRequest.invoke (polyfills.js:3)

Do you know what is causing the error?


AWS S3 is not working
#2

Manage to solve it. I use aws-sdk.min.js from my aws-mobile-hub instead of the aws-sdk.min.js from the ionic starter template.