Skip to content

[amplify_secure_storage] PlatformException(InvalidProtocolBufferException) in Amplify.configure #2500

@asaarnak

Description

@asaarnak

Exception during Amplify plugin configure.
Dependencies with latest transitive dependencies.
amplify_flutter: ^1.0.0-next.2
amplify_auth_cognito: ^1.0.0-next.2

Stacktraces that are related.

AuthPreconditionException(message: Credential store has error. Re-load before continuing., recoverySuggestion: null, underlyingException: null)
AuthException(message: PlatformException(c0, com.google.crypto.tink.shaded.protobuf.c0: Protocol message contained an invalid tag (zero)., Cause: null, Stacktrace: com.google.crypto.tink.shaded.protobuf.c0: Protocol message contained an invalid tag (zero).
	at com.google.crypto.tink.shaded.protobuf.z.J(Unknown Source:75)
	at com.google.crypto.tink.shaded.protobuf.z.G(Unknown Source:2)
	at xa.c0.W(Unknown Source:2)
	at ua.d.read(Unknown Source:8)
	at qa.b.a(Unknown Source:0)
	at ua.a$b.e(Unknown Source:27)
	at ua.a$b.f(Unknown Source:0)
	at ua.a$b.d(Unknown Source:11)
	at androidx.security.crypto.a.b(Unknown Source:50)
	at com.amazonaws.amplify.amplify_secure_storage.amplify_secure_storage.EncryptedKeyValueRepository.getSharedPreferences(Unknown Source:14)
	at com.amazonaws.amplify.amplify_secure_storage.amplify_secure_storage.EncryptedKeyValueRepository.get(Unknown Source:5)
	at com.amazonaws.amplify.amplify_secure_storage.amplify_secure_storage.AmplifySecureStoragePlugin.read(Unknown Source:19)
	at com.amazonaws.amplify.amplify_secure_storage.amplify_secure_storage.Messages$AmplifySecureStorageApi.lambda$setup$0(Unknown Source:30)
	at com.amazonaws.amplify.amplify_secure_storage.amplify_secure_storage.Messages$AmplifySecureStorageApi.c(Unknown Source:0)
	at com.amazonaws.amplify.amplify_secure_storage.amplify_secure_storage.a.a(Unknown Source:2)
	at io.flutter.plugin.common.a$b.a(Unknown Source:17)
	at se.c.l(Unknown Source:18)
	at se.c.m(Unknown Source:20)
	at se.c.i(Unknown Source:0)
	at se.b.run(Unknown Source:12)
	at se.c$h.d(Unknown Source:20)
	at se.c$h.e(Unknown Source:0)
	at se.c$h.b(Unknown Source:0)
	at se.d.run(Unknown Source:2)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1137)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:637)
	at java.lang.Thread.run(Thread.java:1012)
, null), recoverySuggestion: null, underlyingException: null). Error thrown null.
       at AmplifyAuthCognitoDart.configure(auth_plugin_impl.dart:302)
       at AmplifyAuthCognito.configure(auth_plugin_impl.dart:138)
       at Future.wait.<fn>(wait.java)
       at AmplifyHybridImpl.configurePlatform(hybrid_impl.dart:35)
       at AmplifyClass.configure(amplify_class.dart:107)
       at StateMachine._emitError(state_machine.dart:197)
       at StateMachine._listenForEvents(state_machine.dart:173)
       at AmplifySecureStorageApi.read(messages.android.g.dart:53)
       at CredentialStoreStateMachine.getVersion(credential_store_state_machine.dart:67)
       at CredentialStoreStateMachine.onMigrateLegacyCredentialStore(credential_store_state_machine.dart:281)
       at CredentialStoreStateMachineBase.resolve(credential_store_state_machine_base.dart:45)
       at StateMachine._emitError(state_machine.dart:197)
       at StateMachine._listenForEvents(state_machine.dart:173)
       at CredentialStoreStateMachine.getCredentialsResult(credential_store_state_machine.dart:59)
       at FetchAuthSessionStateMachine.onFetchAuthSession(fetch_auth_session_state_machine.dart:179)
       at FetchAuthSessionStateMachineBase.resolve(fetch_auth_session_state_machine_base.dart:37)
       at StateMachine._listenForEvents(state_machine.dart:171)
       at StateMachine._emitError(state_machine.dart:197)
       at StateMachine._listenForEvents(state_machine.dart:173)
       at FetchAuthSessionStateMachine.getLatestResult(fetch_auth_session_state_machine.dart:68)
       at SignInStateMachine._saveAuthResult(sign_in_state_machine.dart:636)
       at SignInStateMachine._processChallenge(sign_in_state_machine.dart:748)
       at SignInStateMachine.resolve(sign_in_state_machine.dart:858)
       at StateMachine._listenForEvents(state_machine.dart:171)

Metadata

Metadata

Assignees

Labels

AndroidIssues specific to the Android PlatformSecure StorageIssues related to the secure_storage packagebugSomething is not working; the issue has reproducible steps and has been reproducedfound-in-release-candidateAn issue that was found in the current release candidatepending-close-response-requiredThe issue will be closed if details necessary to reproduce the issue are not provided within 7 days.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions