Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while configuring storage category #5335

Closed
1 of 14 tasks
perrydev17 opened this issue Aug 21, 2024 · 5 comments
Closed
1 of 14 tasks

Error while configuring storage category #5335

perrydev17 opened this issue Aug 21, 2024 · 5 comments
Labels
not-reproducible Issues that cannot be reproduced using the steps provided question A question about the Amplify Flutter libraries storage Issues related to the Storage Category

Comments

@perrydev17
Copy link

Description

hi, I am getting an error when trying to add the storage plugin into the flutter app, I confirm auth is working as expected, but storage is erroring out

amplify_flutter: ^2.0.0
amplify_auth_cognito: ^2.0.0
amplify_authenticator: ^2.0.0
amplify_storage_s3: ^2.0.0

this is the code in main.dart
flutter-error

in amplifyconfiguration.dart I have
"storage":{ "aws_region":"us-east-1", "bucket_name":"xxx" <- the bucket was created during amplify gen2 setup },

and this is the error crashing the app
flutter-error2

thanks in advance!

Categories

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

Steps to Reproduce

app crash and can't be loaded upon the line addPlugin(storage), I have tried both method addPlugins and addPlugin

Screenshots

No response

Platforms

  • iOS
  • Android
  • Web
  • macOS
  • Windows
  • Linux

Flutter Version

3.4.1

Amplify Flutter Version

^2.0.0

Deployment Method

Amplify CLI

Schema

No response

@Jordan-Nelson Jordan-Nelson added storage Issues related to the Storage Category pending-triage This issue is in the backlog of issues to triage labels Aug 21, 2024
@Jordan-Nelson
Copy link
Member

@perrydev17 - It look like the stack trace is from a browser. Are you able to reproduce this on any other platform? If so, can your provide the stack trace from that platform?

@Jordan-Nelson Jordan-Nelson added the pending-community-response Pending response from the issue opener or other community members label Aug 21, 2024
@Equartey Equartey changed the title Error: Error while configuring storage category Aug 22, 2024
@perrydev17
Copy link
Author

perrydev17 commented Aug 24, 2024

hi @Jordan-Nelson also not able to run in other platforms (Android)

amplify_secure_storage-0.5.4/android/src/main/kotlin/com/amazonaws/amplify/amplify_secure_storage/AmplifySecureStoragePlugin.kt: (49, 16): Class 'kotlin.Result' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.9.0, expected version is 1.7.1.

separately, I was able to run the debug mode (web) with no error, but got the error with flutter run

@Jordan-Nelson
Copy link
Member

@perrydev17 Before running on Android you will need to follow the Android platform setup steps here: https://docs.amplify.aws/flutter/start/platform-setup/#android

I am not able to reproduce the error you are seeing on web. Can you provide the following info:

  • Your full amplify_outputs.dart file (with sensitive or app specific info redacted)
  • The output of dart pub deps -s compact

@Jordan-Nelson Jordan-Nelson added question A question about the Amplify Flutter libraries not-reproducible Issues that cannot be reproduced using the steps provided and removed pending-triage This issue is in the backlog of issues to triage labels Aug 26, 2024
@NikaHsn NikaHsn added the pending-close-response-required The issue will be closed if details necessary to reproduce the issue are not provided within 7 days. label Sep 6, 2024
@NikaHsn
Copy link
Member

NikaHsn commented Oct 15, 2024

I'm closing this issue as we did not hear back. Please feel free to open a new issue if the issue is not resolved.

@NikaHsn NikaHsn closed this as completed Oct 15, 2024
@github-actions github-actions bot removed pending-close-response-required The issue will be closed if details necessary to reproduce the issue are not provided within 7 days. pending-community-response Pending response from the issue opener or other community members labels Oct 15, 2024
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
not-reproducible Issues that cannot be reproduced using the steps provided question A question about the Amplify Flutter libraries storage Issues related to the Storage Category
Projects
None yet
Development

No branches or pull requests

3 participants