smileidentity / flutter

The Official Smile ID Flutter SDK
https://docs.smileidentity.com/integration-options/mobile
MIT License
2 stars 10 forks source link

Platform Exception in smile_messages.g.dart file #103

Closed Kweeku closed 3 weeks ago

Kweeku commented 3 weeks ago

This was the platform exception when running the app on an android device: Exception has occurred. PlatformException (PlatformException(IllegalArgumentException, java.lang.IllegalArgumentException: Expected URL scheme 'http' or 'https' but no scheme was found for sandbo..., Cause: null, Stacktrace: java.lang.IllegalArgumentException: Expected URL scheme 'http' or 'https' but no scheme was found for sandbo... at okhttp3.HttpUrl$Builder.parse$okhttp(HttpUrl.kt:1261) at okhttp3.HttpUrl$Companion.get(HttpUrl.kt:1634) at okhttp3.HttpUrl.get(Unknown Source:2) at retrofit2.Retrofit$Builder.baseUrl(Retrofit.java:554) at com.smileidentity.SmileID.initialize(SmileID.kt:135) at com.smileidentity.SmileID.initialize$default(SmileID.kt:107) at com.smileidentity.flutter.SmileIDPlugin.initialize(SmileIDPlugin.kt:107) at SmileIDApi$Companion.setUp$lambda$3$lambda$2(SmileIDMessages.g.kt:2033) at SmileIDApi$Companion.$r8$lambda$8Rq3XpE9g0gzldyRTQWXssTWpwQ(Unknown Source:0) at SmileIDApi$Companion$$ExternalSyntheticLambda2.onMessage(Unknown Source:2) at io.flutter.plugin.common.BasicMessageChannel$IncomingMessageHandler.onMessage(BasicMessageChannel.java:261) at io.flutter.embedding.engine.dart.DartMessenger.invokeHandler(DartMessenger.java:292) at io.flutter.embedding.engine.dart.DartMessenger.lambda$dispatchMessageToQueue$0$io-flutter-embedding-engine-dart-DartMessenger(DartMessenger.java:319) at io.flutter.embedding.engine.dart.DartMessenger$$ExternalSyntheticLambda0.run(Unknown Source:12) at android.os.Handler.handleCallback(Handler.java:958) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loopOnce(Looper.java:205) at android.os.Looper.loop(Looper.java:294) at android.app.ActivityThread.main(ActivityThread.java:8177) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:552) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:971) , null))

This issues still persist even after manually regeneration the smile_messages pigeon file.

Another issue is that the application simply crushes with no error messages when a user attempts to upload a document / take a picture for verification through the document verification flow. These issues were found by forking and running the example app.