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

Flutter Channel Dev 1.15 issue #26

Closed
furaiev opened this issue Feb 25, 2020 · 3 comments
Closed

Flutter Channel Dev 1.15 issue #26

furaiev opened this issue Feb 25, 2020 · 3 comments

Comments

@furaiev
Copy link
Owner

furaiev commented Feb 25, 2020

I follow the example app, and implement it to my app.
Once publish it, got an issue after create a release version.
After the user session is over (1 hour after), user no longer able to access the app.
the _getValues was throwing error :
"error type '_onebytestring' is not a subtype of type 'int' of 'index'"

I though there's something wrong with my code.
But when I try release the example, the same thing happen.
Secure Counter page & Login page always show "Loading..."

When check it, the actual error came from _cognitoUser.getSession() method.

I honestly don't know what happen here (I'm new to Flutter)
It seem, this issue not happen on debug mode, only when release.

Originally posted by @erw13n in #24 (comment)

@nezz0746
Copy link

Hi i'm having the same issue when trying to release an apk, everything works fine in debug. My error seems to be triggered by getAwsCredentials from CognitoCredentials:

"type '_OneByteString' is not a subtype of type 'int' of 'index'"

I come from react-native so i'm new to this as well but it'd be great to have some help on this.

@erw13n
Copy link

erw13n commented Mar 12, 2020

Make sure you run Flutter Stable Channel and not Dev Channel.
#24 (comment)

@nezz0746
Copy link

@erw13n Ah yes thanks that was the issue, i was actually on Dev this whole time... Thanks !

dkobia added a commit to dkobia/amazon-cognito-identity-dart-2 that referenced this issue Apr 1, 2020
This is a pretty dirty hack for the dart AOT issue causing `type '_OneByteString' is not a subtype of type 'int' of 'index’`. I am basically parsing out the identity id from the response string instead of getting it from the map until we figure out what the actual issue is.

* refs: furaiev#43
* refs: furaiev#26
@furaiev furaiev closed this as completed Apr 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants