Clancey / simple_auth

The Simplest way to Authenticate in Flutter
MIT License
352 stars 108 forks source link

Failed to handle method call on login attempt #93

Closed GroovinChip closed 2 years ago

GroovinChip commented 5 years ago

Login that previously worked is showing the following stack trace on login attempt now:


E/MethodChannel#simple_auth_flutter/showAuthenticator(21726): Failed to handle method call
E/MethodChannel#simple_auth_flutter/showAuthenticator(21726): java.lang.IllegalArgumentException: Unsupported value: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW dat=https://github.com/... }
E/MethodChannel#simple_auth_flutter/showAuthenticator(21726):   at io.flutter.plugin.common.StandardMessageCodec.writeValue(StandardMessageCodec.java:294)
E/MethodChannel#simple_auth_flutter/showAuthenticator(21726):   at io.flutter.plugin.common.StandardMethodCodec.encodeErrorEnvelope(StandardMethodCodec.java:70)
E/MethodChannel#simple_auth_flutter/showAuthenticator(21726):   at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler$1.error(MethodChannel.java:230)
E/MethodChannel#simple_auth_flutter/showAuthenticator(21726):   at clancey.simpleauth.simpleauthflutter.SimpleAuthFlutterPlugin.onMethodCall(SimpleAuthFlutterPlugin.java:63)
E/MethodChannel#simple_auth_flutter/showAuthenticator(21726):   at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:222)
E/MethodChannel#simple_auth_flutter/showAuthenticator(21726):   at io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(DartMessenger.java:90)
E/MethodChannel#simple_auth_flutter/showAuthenticator(21726):   at io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(FlutterJNI.java:234)
E/MethodChannel#simple_auth_flutter/showAuthenticator(21726):   at android.os.MessageQueue.nativePollOnce(Native Method)
E/MethodChannel#simple_auth_flutter/showAuthenticator(21726):   at android.os.MessageQueue.next(MessageQueue.java:326)
E/MethodChannel#simple_auth_flutter/showAuthenticator(21726):   at android.os.Looper.loop(Looper.java:160)
E/MethodChannel#simple_auth_flutter/showAuthenticator(21726):   at android.app.ActivityThread.main(ActivityThread.java:6718)
E/MethodChannel#simple_auth_flutter/showAuthenticator(21726):   at java.lang.reflect.Method.invoke(Native Method)
E/MethodChannel#simple_auth_flutter/showAuthenticator(21726):   at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:495)
E/MethodChannel#simple_auth_flutter/showAuthenticator(21726):   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
E/flutter (21726): [ERROR:flutter/lib/ui/ui_dart_state.cc(148)] Unhandled Exception: PlatformException(error, Unsupported value: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW dat=https://github.com/... }, null)
E/flutter (21726): #0      StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:564:7)
E/flutter (21726): #1      MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:316:33)
E/flutter (21726): <asynchronous suspension>
E/flutter (21726): #2      SimpleAuthFlutter.showAuthenticator (package:simple_auth_flutter/simple_auth_flutter.dart:33:33)
E/flutter (21726): <asynchronous suspension>
E/flutter (21726): #3      OAuthApi.performAuthenticate (package:simple_auth/src/oauth/oauthApi.dart:86:30)
E/flutter (21726): <asynchronous suspension>
E/flutter (21726): #4      AuthenticatedApi.authenticate (package:simple_auth/src/api/authenticatedApi.dart:20:54)
E/flutter (21726): <asynchronous suspension>
E/flutter (21726): #5      _LoginScreenState.login (package:flutter_community_challenges/Login/login_screen.dart:26:34)
E/flutter (21726): <asynchronous suspension>
E/flutter (21726): #6      _LoginScreenState.build.<anonymous closure> (package:flutter_community_challenges/Login/login_screen.dart:134:23)
E/flutter (21726): <asynchronous suspension>
E/flutter (21726): #7      _InkResponseState._handleTap (package:flutter/src/material/ink_well.dart:635:14)
E/flutter (21726): #8      _InkResponseState.build.<anonymous closure> (package:flutter/src/material/ink_well.dart:711:32)
E/flutter (21726): #9      GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:182:24)
E/flutter (21726): #10     TapGestureRecognizer._checkUp (package:flutter/src/gestures/tap.dart:365:11)
E/flutter (21726): #11     TapGestureRecognizer.handlePrimaryPointer (package:flutter/src/gestures/tap.dart:275:7)
E/flutter (21726): #12     PrimaryPointerGestureRecognizer.handleEvent (package:flutter/src/gestures/recognizer.dart:455:9)
E/flutter (21726): #13     PointerRouter._dispatch (package:flutter/src/gestures/pointer_router.dart:75:13)
E/flutter (21726): #14     PointerRouter.route (package:flutter/src/gestures/pointer_router.dart:102:11)
E/flutter (21726): #15     _WidgetsFlutterBinding&BindingBase&GestureBinding.handleEvent (package:flutter/src/gestures/binding.dart:218:19)
E/flutter (21726): #16     _WidgetsFlutterBinding&BindingBase&GestureBinding.dispatchEvent (package:flutter/src/gestures/binding.dart:198:22)
E/flutter (21726): #17     _WidgetsFlutterBinding&BindingBase&GestureBinding._handlePointerEvent (package:flutter/src/gestures/binding.dart:156:7)
E/flutter (21726): #18     _WidgetsFlutterBinding&BindingBase&GestureBinding._flushPointerEventQueue (package:flutter/src/gestures/binding.dart:102:7)
E/flutter (21726): #19     _WidgetsFlutterBinding&BindingBase&GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:86:7)
E/flutter (21726): #20     _rootRunUnary (dart:async/zone.dart:1136:13)
E/flutter (21726): #21     _CustomZone.runUnary (dart:async/zone.dart:1029:19)
E/flutter (21726): #22     _CustomZone.runUnaryGuarded (dart:async/zone.dart:931:7)
E/flutter (21726): #23     _invoke1 (dart:ui/hooks.dart:239:10)
E/flutter (21726): #24     _dispatchPointerDataPacket (dart:ui/hooks.dart:159:5)```