amplify-flutter icon indicating copy to clipboard operation
amplify-flutter copied to clipboard

Instance of 'UnknownSmithyHttpException' on adding amplify_analytics_pinpoint: ^2.2.0

Open vipinkashyap opened this issue 1 year ago • 4 comments

Description

Note: This project has not be created using amplify cli. I used an existing pinpoint project with my flutter app. I have provided the input configuration through amplifyconfiguration.dart providing the app id and the region under pinpointAnalytics

I see the error being thrown here Screenshot 2024-08-22 at 8 14 58 AM

This line to be specific Screenshot 2024-08-22 at 8 12 05 AM

This is how the error is being logged and there is no useful recovery suggestion

Screenshot 2024-08-22 at 8 02 27 AM

Flutter doctor

Screenshot 2024-08-22 at 8 18 07 AM

Please let me know if I can provide more information. I need amplify pinpoint analytics to track events and would really appreciate help with this

Categories

  • [X] Analytics
  • [ ] API (REST)
  • [ ] API (GraphQL)
  • [ ] Auth
  • [ ] Authenticator
  • [ ] DataStore
  • [ ] Notifications (Push)
  • [ ] Storage

Steps to Reproduce

  1. Add a valid amplifyconfiguration.dart file to a flutter project make sure to include the awsPinpointAnalyticsPlugin configuration
  2. Configure amplify as shown in the image above (the graphql config is optional its relevant to my application)
  3. Run the app

Screenshots

Screenshot 2024-08-22 at 8 02 27 AM Screenshot 2024-08-22 at 8 12 05 AM Screenshot 2024-08-22 at 8 14 58 AM

Platforms

  • [X] iOS
  • [X] Android
  • [ ] Web
  • [X] macOS
  • [ ] Windows
  • [ ] Linux

Flutter Version

3.22.0

Amplify Flutter Version

2.2.0

Deployment Method

Custom Pipeline

Schema

No response

vipinkashyap avatar Aug 22 '24 15:08 vipinkashyap

Sorry that you are facing this issue and thanks for reporting it. We will look into this and get back to you when we have updates.

NikaHsn avatar Aug 22 '24 16:08 NikaHsn

Hello @vipinkashyap can you please verify that your IAM Policy has been updated to as described here. This will need to be done for both your Guest role and Authenticated role which can be found here:

AWS Console -> Cognito -> Identity pools -> Identity pool name -> User access

In the meantime I'll look into why this documentation is excluded in Flutter.

tyllark avatar Aug 22 '24 21:08 tyllark

I can confirm that the steps you've detailed work . I am able to now use pinpoint analytics. Thank you!

vipinkashyap avatar Aug 23 '24 01:08 vipinkashyap

@vipinkashyap thanks for confirming and gald that the issue is resolved. I will leave this issue open to update the documentation and close it after that.

NikaHsn avatar Aug 23 '24 16:08 NikaHsn

I'm going to close this issue as the documentation is updated. please feel free to open a new issue if you have any other questions.

NikaHsn avatar Sep 03 '24 20:09 NikaHsn

This issue is now closed. Comments on closed issues are hard for our team to see. If you need more assistance, please open a new issue that references this one.

github-actions[bot] avatar Sep 03 '24 20:09 github-actions[bot]