-
Notifications
You must be signed in to change notification settings - Fork 247
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
Amplify.Auth.updateUserAttribute crashes app #2361
Comments
Hi can you please provide the crash message you are receiving in the logs? |
version=2.18.4 (stable) (Tue Nov 1 15:15:07 2022 +0000) on "ios_arm64" |
Thanks for sharing that. Doesn't provide very useful debug information unfortunately. Based on your first comment it sounds like you have a rather specific custom setup here. Do you feel comfortable sharing the git repository of your project with me? github: fjnoyp With that access I could run your project locally and run the debugger and see what is happening. This would help me determine where the error is happening, on the iOS native side (seems likely) and if so what the failure line is. |
Unfortunately I can't share this repo. Is this crash message more helpful?
|
Unfortunately it's not that helpful because it's mostly dart and flutter system code logs that aren't related to the code of Amplify Flutter. The only relevant logs mention the name of the method that's failing but we already know that :) (Please ignore my previous comment about running on Swift - I failed to realize you were using the Dart first preview version of Auth) |
Can you confirm that you are in fact on auth next :
|
Also could you provide the code that calls into |
Hi @adam-fpc we have tried to replicate this on our side by calling |
Hey @fjnoyp - thanks for trying. I can confirm I was on I pulled the call to
|
Hi @adam-fpc - I wasn't able to reproduce this in a standard auth test app. I noticed you called out using Cognito through a Cloudfront proxy in your repro steps. Have you tested this without the proxy? If you are able to test without it, it would be helpful to determine if that is the issue here. |
Can you confirm if you are seeing only seeing this on iOS? Have you attempted to reproduce it on other platforms? |
Hi @Jordan-Nelson - thanks for trying. And yes, I have not encountered this issue without the proxy in place. I realize I selected both Android and iOS in the issue, I have only observed on iOS (physical device and simulator). Android is working as expected for me. (No other platforms tested / supported in the Flutter project) |
Thanks @adam-fpc. We will attempt to repro this with a Cloudfront proxy. |
Hi @Jordan-Nelson I can reproduce this in ios 13.4.1 in real device but it's working in ios 16.0.1 simulator amplify_flutter: ^1.0.0-next.2 here is the error:
|
@likeconan - Are you also using a Cloudfront proxy? |
Hi all - sorry for the lack of updates on this thread. I did attempt to reproduce the issue but was unsuccessful. I've opened a ticket with the Dart team here. Hopefully, they can help shed some light on what may be happening. |
Hi Jordan, no I did not. |
Hello, the issue still exists in the following versions: amplify_flutter: 1.0.0-next.4 |
@theartofnonso - I'm sorry to hear this is not resolved for you. We did attempt to resolve it in our library, but ultimately it is an issue in the Dart SDK. We will leave this issue open until the Dart fix makes its way to stable. |
This issue should be resolved in version Thanks for your patience as we investigated this. |
This issue has been addressed in v1.0.0 of Amplify Flutter, which is now stable. This release also includes web and desktop support for Auth, API, Analytics, and Storage. You can see the list of new features and bug fixes in the release notes, and see more details on how to migrate in the upgrade guide. |
Description
Calling
Amplify.Auth.updateUserAttribute
orAmplify.Auth.updateUserAttributes
causes an immediate app crashCategories
Steps to Reproduce
Amplify.Auth.updateUserAttribute(userAttributeKey: CognitoUserAttributeKey.email, value: 'mynewemail@email.com');
Screenshots
No response
Platforms
Android Device/Emulator API Level
API 32+
Environment
Dependencies
Device
iPhone XR, iPhone 14 Simulator, Pixel 5 Emulator
OS
iOS 14.1, iOS 16.1, Android 12, Android 13d
Deployment Method
Custom Pipeline
CLI Version
10.0.0
Additional Context
No response
Amplify Config
The text was updated successfully, but these errors were encountered: