-
Notifications
You must be signed in to change notification settings - Fork 50
CredentialsError: Missing credentials in config #33
Comments
Looking into this, the format may have changed |
Hmm, not able to reproduce. Does it work if you refresh and then try? |
I have the same issue but it happens random. |
Is this issue resolved? I think I have run into similar issue with the same error. On debugging, I found that: Whenever the first time I logged out of a user and then login again using another user, the identityId of the AWS.config.credentials.identityId remains that of the previous user, so that when I call AWS Dynamodb:
it will have this error: I can't find a way to refresh/reset the credentials to have the identity ID of the newly successful login... However, when I refresh the page for that same (second logged-in user), on the second time, the identityId is set correctly so that the Dynamodb query string returns correctly. Anyone has any idea why this is happening? |
I fixed this issue calling AWS.config.credentials.clearCachedId() in the logout method (user.ts) Before: logout() {
this.user = null;
this.cognito.getUserPool().getCurrentUser().signOut();
} After: logout() {
this.user = null;
this.cognito.getUserPool().getCurrentUser().signOut();
AWS.config.credentials.clearCachedId();
} |
Thanks, Fmendoza! Your suggestion works perfectly and solve my issue! The ionic2-starter-aws team should add this line to the default code so others will not encounter the same issue. |
I have the original issue when selecting
|
So it turns out the problem I was experiencing above was due to changing the region to |
After unzipping
|
Hi, when running the aws-starter-kit I get this error message, 'CredentialsError: Missing credentials in config' when trying to view or add a Task. The full error message is as follows,
CredentialsError: Missing credentials in config
Stack trace:
handleRequest/<@http://localhost:8100/assets/aws-sdk.min.js:40:14371
f</t.prototype.invokeTask@http://localhost:8100/build/polyfills.js:3:9956
onInvokeTask@http://localhost:8100/build/vendor.js:4499:28
f</t.prototype.invokeTask@http://localhost:8100/build/polyfills.js:3:9869
c</r.prototype.runTask@http://localhost:8100/build/polyfills.js:3:5124
t/this.invoke@http://localhost:8100/build/polyfills.js:3:10938
I did not modify the code apart from downloading the aws-config.js file. The auth process seems to work fine in that I can create a user profile and then log in. The Task window remains blank, however. I get the same error message when trying to add a task. I appreciate any help you can give me on this!
The text was updated successfully, but these errors were encountered: