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

SDK крешится сразу при инициализации #1

Open
eastsss opened this issue Aug 24, 2023 · 0 comments
Open

Comments

@eastsss
Copy link

eastsss commented Aug 24, 2023

Если на сайте не оплачен тариф (например после пробного периода), то каждый раз при старте приложения Carrot SDK просто крешится при инициализации.

D/ConnectDeserializer. ( 1689): java.lang.NullPointerException: Attempt to invoke virtual method 'com.google.gson.JsonObject com.google.gson.JsonElement.getAsJsonObject()' on a null object reference
E/CarrotService( 1689): com.google.gson.JsonParseException: Connect deserialize error: User is null! Json = {"meta":{"status":200},"data":{"app":{"blocked":true}}}
E/CarrotService( 1689): io.reactivex.exceptions.CompositeException: 2 exceptions occurred.
W/System.err( 1689): io.reactivex.exceptions.CompositeException: 2 exceptions occurred.
W/System.err( 1689): 	at io.reactivex.internal.operators.observable.ObservableDoOnEach$DoOnEachObserver.onError(ObservableDoOnEach.java:115)
W/System.err( 1689): 	at io.reactivex.internal.operators.observable.ObservableDoOnEach$DoOnEachObserver.onError(ObservableDoOnEach.java:117)
W/System.err( 1689): 	at io.reactivex.internal.observers.BasicFuseableObserver.onError(BasicFuseableObserver.java:100)
W/System.err( 1689): 	at io.reactivex.internal.operators.observable.ObservableObserveOn$ObserveOnObserver.checkTerminated(ObservableObserveOn.java:281)
W/System.err( 1689): 	at io.reactivex.internal.operators.observable.ObservableObserveOn$ObserveOnObserver.drainNormal(ObservableObserveOn.java:172)
W/System.err( 1689): 	at io.reactivex.internal.operators.observable.ObservableObserveOn$ObserveOnObserver.run(ObservableObserveOn.java:255)
W/System.err( 1689): 	at io.reactivex.android.schedulers.HandlerScheduler$ScheduledRunnable.run(HandlerScheduler.java:124)
W/System.err( 1689): 	at android.os.Handler.handleCallback(Handler.java:883)
W/System.err( 1689): 	at android.os.Handler.dispatchMessage(Handler.java:100)
W/System.err( 1689): 	at android.os.Looper.loop(Looper.java:237)
W/System.err( 1689): 	at android.app.ActivityThread.main(ActivityThread.java:8167)
W/System.err( 1689): 	at java.lang.reflect.Method.invoke(Native Method)
W/System.err( 1689): 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:496)
W/System.err( 1689): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1100)
W/System.err( 1689):   ComposedException 1 :
W/System.err( 1689): 	com.google.gson.JsonParseException: Connect deserialize error: User is null! Json = {"meta":{"status":200},"data":{"app":{"blocked":true}}}
W/System.err( 1689): 		at io.carrotquest.cqandroid_lib.network.deserializers.ConnectDeserializer.oldParseResponse(ConnectDeserializer.java:108)
W/System.err( 1689): 		at io.carrotquest.cqandroid_lib.network.deserializers.ConnectDeserializer.deserialize(ConnectDeserializer.java:88)
W/System.err( 1689): 		at io.carrotquest.cqandroid_lib.network.deserializers.ConnectDeserializer.deserialize(ConnectDeserializer.java:16)
W/System.err( 1689): 		at com.google.gson.internal.bind.TreeTypeAdapter.read(TreeTypeAdapter.java:69)
W/System.err( 1689): 		at retrofit2.converter.gson.GsonResponseBodyConverter.convert(GsonResponseBodyConverter.java:40)
W/System.err( 1689): 		at retrofit2.converter.gson.GsonResponseBodyConverter.convert(GsonResponseBodyConverter.java:27)
W/System.err( 1689): 		at retrofit2.OkHttpCall.parseResponse(OkHttpCall.java:243)
W/System.err( 1689): 		at retrofit2.OkHttpCall.execute(OkHttpCall.java:204)
W/System.err( 1689): 		at retrofit2.adapter.rxjava2.CallExecuteObservable.subscribeActual(CallExecuteObservable.java:42)
W/System.err( 1689): 		at io.reactivex.Observable.subscribe(Observable.java:12284)
W/System.err( 1689): 		at retrofit2.adapter.rxjava2.BodyObservable.subscribeActual(BodyObservable.java:34)
W/System.err( 1689): 		at io.reactivex.Observable.subscribe(Observable.java:12284)
W/System.err( 1689): 		at io.reactivex.internal.operators.observable.ObservableSubscribeOn$SubscribeTask.run(ObservableSubscribeOn.java:96)
W/System.err( 1689): 		at io.reactivex.Scheduler$DisposeTask.run(Scheduler.java:608)
W/System.err( 1689): 		at io.reactivex.internal.schedulers.ScheduledRunnable.run(ScheduledRunnable.java:66)
W/System.err( 1689): 		at io.reactivex.internal.schedulers.ScheduledRunnable.call(ScheduledRunnable.java:57)
W/System.err( 1689): 		at java.util.concurrent.FutureTask.run(FutureTask.java:266)
W/System.err( 1689): 		at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:301)
W/System.err( 1689): 		at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
W/System.err( 1689): 		at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
W/System.err( 1689): 		at java.lang.Thread.run(Thread.java:919)
W/System.err( 1689):   ComposedException 2 :
W/System.err( 1689): 	java.lang.IllegalStateException: Reply already submitted
W/System.err( 1689): 		at io.flutter.embedding.engine.dart.DartMessenger$Reply.reply(DartMessenger.java:435)
W/System.err( 1689): 		at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler$1.error(MethodChannel.java:268)
W/System.err( 1689): 		at io.carrotquest.carrotquest_sdk.CarrotquestSdkPlugin$setup$1.onFailure(CarrotquestSdkPlugin.kt:175)
W/System.err( 1689): 		at io.carrotquest_sdk.android.c.d.a.a(Unknown Source:7)
W/System.err( 1689): 		at io.carrotquest_sdk.android.c.d.a.$r8$lambda$_TEo7vpz_PwKCRM7yZj8MGq3B40(Unknown Source:0)
W/System.err( 1689): 		at io.carrotquest_sdk.android.c.d.a$$ExternalSyntheticLambda8.accept(Unknown Source:4)
W/System.err( 1689): 		at io.reactivex.internal.operators.observable.ObservableDoOnEach$DoOnEachObserver.onError(ObservableDoOnEach.java:112)
W/System.err( 1689): 		at io.reactivex.internal.operators.observable.ObservableDoOnEach$DoOnEachObserver.onError(ObservableDoOnEach.java:117)
W/System.err( 1689): 		at io.reactivex.internal.observers.BasicFuseableObserver.onError(BasicFuseableObserver.java:100)
W/System.err( 1689): 		at io.reactivex.internal.operators.observable.ObservableObserveOn$ObserveOnObserver.checkTerminated(ObservableObserveOn.java:281)
W/System.err( 1689): 		at io.reactivex.internal.operators.observable.ObservableObserveOn$ObserveOnObserver.drainNormal(ObservableObserveOn.java:172)
W/System.err( 1689): 		at io.reactivex.internal.operators.observable.ObservableObserveOn$ObserveOnObserver.run(ObservableObserveOn.java:255)
W/System.err( 1689): 		at io.reactivex.android.schedulers.HandlerScheduler$ScheduledRunnable.run(HandlerScheduler.java:124)
W/System.err( 1689): 		at android.os.Handler.handleCallback(Handler.java:883)
W/System.err( 1689): 		at android.os.Handler.dispatchMessage(Handler.java:100)
W/System.err( 1689): 		at android.os.Looper.loop(Looper.java:237)
W/System.err( 1689): 		at android.app.ActivityThread.main(ActivityThread.java:8167)
W/System.err( 1689): 		at java.lang.reflect.Method.invoke(Native Method)
W/System.err( 1689): 		at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:496)
W/System.err( 1689): 		at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1100)
W/System.err( 1689): java.lang.IllegalStateException: Reply already submitted
W/System.err( 1689): 	at io.flutter.embedding.engine.dart.DartMessenger$Reply.reply(DartMessenger.java:435)
W/System.err( 1689): 	at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler$1.error(MethodChannel.java:268)
W/System.err( 1689): 	at io.carrotquest.carrotquest_sdk.CarrotquestSdkPlugin$setup$1.onFailure(CarrotquestSdkPlugin.kt:175)
W/System.err( 1689): 	at io.carrotquest_sdk.android.c.d.a$i.onError(Unknown Source:9)
W/System.err( 1689): 	at io.reactivex.internal.operators.observable.ObservableDoOnEach$DoOnEachObserver.onError(ObservableDoOnEach.java:117)
W/System.err( 1689): 	at io.reactivex.internal.operators.observable.ObservableDoOnEach$DoOnEachObserver.onError(ObservableDoOnEach.java:117)
W/System.err( 1689): 	at io.reactivex.internal.observers.BasicFuseableObserver.onError(BasicFuseableObserver.java:100)
W/System.err( 1689): 	at io.reactivex.internal.operators.observable.ObservableObserveOn$ObserveOnObserver.checkTerminated(ObservableObserveOn.java:281)
W/System.err( 1689): 	at io.reactivex.internal.operators.observable.ObservableObserveOn$ObserveOnObserver.drainNormal(ObservableObserveOn.java:172)
W/System.err( 1689): 	at io.reactivex.internal.operators.observable.ObservableObserveOn$ObserveOnObserver.run(ObservableObserveOn.java:255)
W/System.err( 1689): 	at io.reactivex.android.schedulers.HandlerScheduler$ScheduledRunnable.run(HandlerScheduler.java:124)
W/System.err( 1689): 	at android.os.Handler.handleCallback(Handler.java:883)
W/System.err( 1689): 	at android.os.Handler.dispatchMessage(Handler.java:100)
W/System.err( 1689): 	at android.os.Looper.loop(Looper.java:237)
W/System.err( 1689): 	at android.app.ActivityThread.main(ActivityThread.java:8167)
W/System.err( 1689): 	at java.lang.reflect.Method.invoke(Native Method)
W/System.err( 1689): 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:496)
W/System.err( 1689): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1100)
E/AndroidRuntime( 1689): FATAL EXCEPTION: main
E/AndroidRuntime( 1689): Process: com.example.selesta_mvp, PID: 1689
E/AndroidRuntime( 1689): java.lang.IllegalStateException: Reply already submitted
E/AndroidRuntime( 1689): 	at io.flutter.embedding.engine.dart.DartMessenger$Reply.reply(DartMessenger.java:435)
E/AndroidRuntime( 1689): 	at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler$1.error(MethodChannel.java:268)
E/AndroidRuntime( 1689): 	at io.carrotquest.carrotquest_sdk.CarrotquestSdkPlugin$setup$1.onFailure(CarrotquestSdkPlugin.kt:175)
E/AndroidRuntime( 1689): 	at io.carrotquest_sdk.android.c.d.a$i.onError(Unknown Source:9)
E/AndroidRuntime( 1689): 	at io.reactivex.internal.operators.observable.ObservableDoOnEach$DoOnEachObserver.onError(ObservableDoOnEach.java:117)
E/AndroidRuntime( 1689): 	at io.reactivex.internal.operators.observable.ObservableDoOnEach$DoOnEachObserver.onError(ObservableDoOnEach.java:117)
E/AndroidRuntime( 1689): 	at io.reactivex.internal.observers.BasicFuseableObserver.onError(BasicFuseableObserver.java:100)
E/AndroidRuntime( 1689): 	at io.reactivex.internal.operators.observable.ObservableObserveOn$ObserveOnObserver.checkTerminated(ObservableObserveOn.java:281)
E/AndroidRuntime( 1689): 	at io.reactivex.internal.operators.observable.ObservableObserveOn$ObserveOnObserver.drainNormal(ObservableObserveOn.java:172)
E/AndroidRuntime( 1689): 	at io.reactivex.internal.operators.observable.ObservableObserveOn$ObserveOnObserver.run(ObservableObserveOn.java:255)
E/AndroidRuntime( 1689): 	at io.reactivex.android.schedulers.HandlerScheduler$ScheduledRunnable.run(HandlerScheduler.java:124)
E/AndroidRuntime( 1689): 	at android.os.Handler.handleCallback(Handler.java:883)
E/AndroidRuntime( 1689): 	at android.os.Handler.dispatchMessage(Handler.java:100)
E/AndroidRuntime( 1689): 	at android.os.Looper.loop(Looper.java:237)
E/AndroidRuntime( 1689): 	at android.app.ActivityThread.main(ActivityThread.java:8167)
E/AndroidRuntime( 1689): 	at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime( 1689): 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:496)
E/AndroidRuntime( 1689): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1100)
I/Process ( 1689): Sending signal. PID: 1689 SIG: 9
Lost connection to device.
Exited

По сути это означает что любое приложение, интегрировавшее Carrot SDK, полностью перестает работать при любой проблеме с оплатой Carrotquest...

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

1 participant