Comments (13)
Anyone else seeing this issue - for me it helped to turn on debug mode, the error message with regards to the IAM role is a red herring.
I set a breakpoint and stepped back through the call stack, in my case it turned out I had some custom attributes being recorded that were not of type "string". It'd be good if some type detection could be inferred but for now you have to force all attributes to be strings.
from docs.
This issue appears to still occur. Here's a screenshot of the error in the IAM Policy editor:
from docs.
We also had the IAM role issue. It turned out that the Cognito identity pool did not allow "Unauthenticated identities". After checking "Enable access to unauthenticated identities" in the identity pool, the issue was fixed.
from docs.
"No issue anymore, not using Pinpoint anymore " this is acceptable ?
from docs.
Facing the same problem.
This part of the setup is not implementable - Update Your IAM Policy.
And hence, it gives following error AWSPinpointProvider - Please ensure you have updated you Pinpoint IAM Policywith the Action: "mobiletargeting:PutEvents" in order tocontinue using AWS Pinpoint Service
from docs.
@izieg-lo3 i was able to set the policy in AWS exactly as described in PinPoint project settings setup section, including "mobiletargeting:PutEvents".
Previously we created PinPoint project in end of September 2018 and this particular action was NOT included in policy.
My speculation is AWS changed something in SDK, as with latest SDK we saw problems w/o this "mobiletargeting:PutEvents" permissions.
Anyway AWS IAM editor works fine with "mobiletargeting:PutEvents" and accepts it, as per PinPoint project setup.
from docs.
Same problem here. It's strange because events are properly recorded via Analytics.autoTrack()
but not when using Analytics.record()
. It's a total blocker to evaluating and implementing anything with this right now.
from docs.
Just posting as noone posted yet, using this as per project configuration page
https://console.aws.amazon.com/pinpoint/home/?region=us-east-1#/apps/YOURPROJECTID/settings/push
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"mobiletargeting:PutEvents"
],
"Resource": [
"arn:aws:mobiletargeting:us-east-1:123123123123:apps/YOURPROJECTID"
]
},
{
"Effect": "Allow",
"Action": [
"mobiletargeting:UpdateEndpoint"
],
"Resource": [
"arn:aws:mobiletargeting:us-east-1:123123123123:apps/YOURPROJECTID"
]
},
{
"Effect": "Allow",
"Action": [
"mobileanalytics:PutEvents"
],
"Resource": [
"*"
]
}
]
}
from docs.
Try using the Logging DEBUG option with. It culd show you the reason why.
import Amplify, { ConsoleLogger as Logger} from '@aws-amplify/core';
Amplify.Logger.LOG_LEVEL = 'DEBUG';
from docs.
@izieg-lo3 or anyone on this thread, are you guys still have issue with the documentation here/what should be changed?
from docs.
No issue anymore, not using Pinpoint anymore 👍
from docs.
This issue has been automatically closed because of inactivity. Please open a new issue if are still encountering problems.
from docs.
this is sad
from docs.
Related Issues (20)
- The displayed command information is outdated
- [Gen2] Rest API setup will cause error "Subscribe only available for AWS AppSync endpoint"
- Nuxt SSR guide for Gen 2 is incorrect about Amplify support HOT 1
- Docs are missing an explanation of model's authorization operations
- add auth example for federating with Google, Facebook, etc.
- The client code for Android and Flutter are in typescript language
- Callout for errors like: TypeError: Cannot read properties of null (reading 'id')
- Provide example of how to reference resources for AppSync API's
- Clarify what "base project directory" means HOT 1
- Typescript step debugging instructions for Amplify Gen 2
- Quickstart "npx ampx sandbox" issue HOT 3
- add errors to API documentation
- document Auth0 example on auth
- AWS Amplify Gen 2 with Next.js 14: Implementing ISR for App Router
- New Amplify Docs are almost unusable HOT 2
- Next.js code on React auth page
- Suggested RDS database setup instructions lead to typescript error HOT 1
- Swift Quickstart Guide skips over Github integration and dead link for Github integration guide
- Dropdown menu error when run locally HOT 1
- "Build settings" and "Environment variables" not accessible in console for Gen 1 App after Gen 2 update
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docs.