Git Product home page Git Product logo

Comments (13)

roborourke avatar roborourke commented on August 23, 2024 2

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.

schellack avatar schellack commented on August 23, 2024 1

This issue appears to still occur. Here's a screenshot of the error in the IAM Policy editor:
image

from docs.

quintensis avatar quintensis commented on August 23, 2024 1

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.

kaushikbhanu avatar kaushikbhanu commented on August 23, 2024 1

"No issue anymore, not using Pinpoint anymore " this is acceptable ?

from docs.

kunsachdeva avatar kunsachdeva commented on August 23, 2024

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.

sshilko avatar sshilko commented on August 23, 2024

@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.

roborourke avatar roborourke commented on August 23, 2024

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.

sshilko avatar sshilko commented on August 23, 2024

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.

quintensis avatar quintensis commented on August 23, 2024

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.

jordanranz avatar jordanranz commented on August 23, 2024

@izieg-lo3 or anyone on this thread, are you guys still have issue with the documentation here/what should be changed?

from docs.

sshilko avatar sshilko commented on August 23, 2024

No issue anymore, not using Pinpoint anymore 👍

from docs.

stale avatar stale commented on August 23, 2024

This issue has been automatically closed because of inactivity. Please open a new issue if are still encountering problems.

from docs.

kaushikbhanu avatar kaushikbhanu commented on August 23, 2024

this is sad

from docs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.