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

Getting parsing error in Android target SDK 31 #279

Open
vasudevjogani opened this issue Nov 15, 2021 · 2 comments
Open

Getting parsing error in Android target SDK 31 #279

vasudevjogani opened this issue Nov 15, 2021 · 2 comments

Comments

@vasudevjogani
Copy link

Getting Parsing error

https://ravesandboxapi.flutterwave.com/mockvbvpage?ref=FLW-MOCK-9e635c36ebdfef0d9884d498389089ea&code=00&message=Approved.%20Successful&receiptno=RN1636985366835

com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected a string but was BEGIN_OBJECT at line 1 column 2 path $
2021-11-15 19:39:28.916 31771-31771/com.xyz.xyy W/System.err: at com.google.gson.Gson.fromJson(Gson.java:944)
2021-11-15 19:39:28.916 31771-31771/com.xyz.xyy W/System.err: at com.google.gson.Gson.fromJson(Gson.java:897)
2021-11-15 19:39:28.916 31771-31771/com.xyz.xyy W/System.err: at com.google.gson.Gson.fromJson(Gson.java:846)
2021-11-15 19:39:28.916 31771-31771/com.xyz.xyy W/System.err: at com.flutterwave.raveandroid.rave_java_commons.NetworkRequestExecutor$1.onResponse(NetworkRequestExecutor.java:40)
2021-11-15 19:39:28.916 31771-31771/com.xyz.xyy W/System.err: at retrofit2.DefaultCallAdapterFactory$ExecutorCallbackCall$1.lambda$onResponse$0$retrofit2-DefaultCallAdapterFactory$ExecutorCallbackCall$1(DefaultCallAdapterFactory.java:89)
2021-11-15 19:39:28.916 31771-31771/com.xyz.xyy W/System.err: at retrofit2.DefaultCallAdapterFactory$ExecutorCallbackCall$1$$ExternalSyntheticLambda1.run(Unknown Source:6)
2021-11-15 19:39:28.916 31771-31771/com.xyz.xyy W/System.err: at android.os.Handler.handleCallback(Handler.java:883)
2021-11-15 19:39:28.916 31771-31771/com.xyz.xyy W/System.err: at android.os.Handler.dispatchMessage(Handler.java:100)
2021-11-15 19:39:28.916 31771-31771/com.xyz.xyy W/System.err: at android.os.Looper.loop(Looper.java:237)
2021-11-15 19:39:28.916 31771-31771/com.xyz.xyy W/System.err: at android.app.ActivityThread.main(ActivityThread.java:7948)
2021-11-15 19:39:28.916 31771-31771/com.xyz.xyy W/System.err: at java.lang.reflect.Method.invoke(Native Method)
2021-11-15 19:39:28.916 31771-31771/com.xyz.xyy W/System.err: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
2021-11-15 19:39:28.916 31771-31771/com.xyz.xyy W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1075)
2021-11-15 19:39:28.917 31771-31771/com.xyz.xyy W/System.err: Caused by: java.lang.IllegalStateException: Expected a string but was BEGIN_OBJECT at line 1 column 2 path $
2021-11-15 19:39:28.917 31771-31771/com.xyz.xyy W/System.err: at com.google.gson.stream.JsonReader.nextString(JsonReader.java:824)
2021-11-15 19:39:28.917 31771-31771/com.xyz.xyy W/System.err: at com.google.gson.internal.bind.TypeAdapters$16.read(TypeAdapters.java:402)
2021-11-15 19:39:28.917 31771-31771/com.xyz.xyy W/System.err: at com.google.gson.internal.bind.TypeAdapters$16.read(TypeAdapters.java:390)
2021-11-15 19:39:28.917 31771-31771/com.xyz.xyy W/System.err: at com.google.gson.Gson.fromJson(Gson.java:932)
2021-11-15 19:39:28.917 31771-31771/com.xyz.xyy W/System.err: ... 12 more

https://ravesandboxapi.flutterwave.com/mockvbvpage?ref=FLW-MOCK-9e635c36ebdfef0d9884d498389089ea&code=00&message=Approved.+Successful&receiptno=RN1636985366835&submitting_mock_form=12345

com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected a string but was BEGIN_OBJECT at line 1 column 2 path $
2021-11-15 19:40:40.184 31771-31771/com.xyz.xyy W/System.err: at com.google.gson.Gson.fromJson(Gson.java:944)
2021-11-15 19:40:40.184 31771-31771/com.xyz.xyy W/System.err: at com.google.gson.Gson.fromJson(Gson.java:897)
2021-11-15 19:40:40.184 31771-31771/com.xyz.xyy W/System.err: at com.google.gson.Gson.fromJson(Gson.java:846)
2021-11-15 19:40:40.184 31771-31771/com.xyz.xyy W/System.err: at com.flutterwave.raveandroid.rave_java_commons.NetworkRequestExecutor$1.onResponse(NetworkRequestExecutor.java:40)
2021-11-15 19:40:40.185 31771-31771/com.xyz.xyy W/System.err: at retrofit2.DefaultCallAdapterFactory$ExecutorCallbackCall$1.lambda$onResponse$0$retrofit2-DefaultCallAdapterFactory$ExecutorCallbackCall$1(DefaultCallAdapterFactory.java:89)
2021-11-15 19:40:40.185 31771-31771/com.xyz.xyy W/System.err: at retrofit2.DefaultCallAdapterFactory$ExecutorCallbackCall$1$$ExternalSyntheticLambda1.run(Unknown Source:6)
2021-11-15 19:40:40.185 31771-31771/com.xyz.xyy W/System.err: at android.os.Handler.handleCallback(Handler.java:883)
2021-11-15 19:40:40.185 31771-31771/com.xyz.xyy W/System.err: at android.os.Handler.dispatchMessage(Handler.java:100)
2021-11-15 19:40:40.185 31771-31771/com.xyz.xyy W/System.err: at android.os.Looper.loop(Looper.java:237)
2021-11-15 19:40:40.185 31771-31771/com.xyz.xyy W/System.err: at android.app.ActivityThread.main(ActivityThread.java:7948)
2021-11-15 19:40:40.185 31771-31771/com.xyz.xyy W/System.err: at java.lang.reflect.Method.invoke(Native Method)
2021-11-15 19:40:40.185 31771-31771/com.xyz.xyy W/System.err: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
2021-11-15 19:40:40.185 31771-31771/com.xyz.xyy W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1075)
2021-11-15 19:40:40.186 31771-31771/com.xyz.xyy W/System.err: Caused by: java.lang.IllegalStateException: Expected a string but was BEGIN_OBJECT at line 1 column 2 path $
2021-11-15 19:40:40.186 31771-31771/com.xyz.xyy W/System.err: at com.google.gson.stream.JsonReader.nextString(JsonReader.java:824)
2021-11-15 19:40:40.186 31771-31771/com.xyz.xyy W/System.err: at com.google.gson.internal.bind.TypeAdapters$16.read(TypeAdapters.java:402)
2021-11-15 19:40:40.186 31771-31771/com.xyz.xyy W/System.err: at com.google.gson.internal.bind.TypeAdapters$16.read(TypeAdapters.java:390)
2021-11-15 19:40:40.186 31771-31771/com.xyz.xyy W/System.err: at com.google.gson.Gson.fromJson(Gson.java:932)
2021-11-15 19:40:40.186 31771-31771/com.xyz.xyy W/System.err: ... 12 more
2021-11-15 19:40:40.187 31771-31771/com.xyz.xyy D/rave logger tag: Error parsing server response

POST https://ravesandboxapi.flutterwave.com/flwv3-pug/getpaidx/api/verify/mpesa

com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected a string but was BEGIN_OBJECT at line 1 column 2 path $
2021-11-15 19:40:41.739 31771-31771/com.xyz.xyy W/System.err: at com.google.gson.Gson.fromJson(Gson.java:944)
2021-11-15 19:40:41.739 31771-31771/com.xyz.xyy W/System.err: at com.google.gson.Gson.fromJson(Gson.java:897)
2021-11-15 19:40:41.739 31771-31771/com.xyz.xyy W/System.err: at com.google.gson.Gson.fromJson(Gson.java:846)
2021-11-15 19:40:41.739 31771-31771/com.xyz.xyy W/System.err: at com.flutterwave.raveandroid.rave_java_commons.NetworkRequestExecutor$1.onResponse(NetworkRequestExecutor.java:40)
2021-11-15 19:40:41.739 31771-31771/com.xyz.xyy W/System.err: at retrofit2.DefaultCallAdapterFactory$ExecutorCallbackCall$1.lambda$onResponse$0$retrofit2-DefaultCallAdapterFactory$ExecutorCallbackCall$1(DefaultCallAdapterFactory.java:89)
2021-11-15 19:40:41.739 31771-31771/com.xyz.xyy W/System.err: at retrofit2.DefaultCallAdapterFactory$ExecutorCallbackCall$1$$ExternalSyntheticLambda1.run(Unknown Source:6)
2021-11-15 19:40:41.739 31771-31771/com.xyz.xyy W/System.err: at android.os.Handler.handleCallback(Handler.java:883)
2021-11-15 19:40:41.739 31771-31771/com.xyz.xyy W/System.err: at android.os.Handler.dispatchMessage(Handler.java:100)
2021-11-15 19:40:41.739 31771-31771/com.xyz.xyy W/System.err: at android.os.Looper.loop(Looper.java:237)
2021-11-15 19:40:41.739 31771-31771/com.xyz.xyy W/System.err: at android.app.ActivityThread.main(ActivityThread.java:7948)
2021-11-15 19:40:41.739 31771-31771/com.xyz.xyy W/System.err: at java.lang.reflect.Method.invoke(Native Method)
2021-11-15 19:40:41.739 31771-31771/com.xyz.xyy W/System.err: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
2021-11-15 19:40:41.739 31771-31771/com.xyz.xyy W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1075)
2021-11-15 19:40:41.740 31771-31771/com.xyz.xyy W/System.err: Caused by: java.lang.IllegalStateException: Expected a string but was BEGIN_OBJECT at line 1 column 2 path $
2021-11-15 19:40:41.740 31771-31771/com.xyz.xyy W/System.err: at com.google.gson.stream.JsonReader.nextString(JsonReader.java:824)
2021-11-15 19:40:41.740 31771-31771/com.xyz.xyy W/System.err: at com.google.gson.internal.bind.TypeAdapters$16.read(TypeAdapters.java:402)
2021-11-15 19:40:41.740 31771-31771/com.xyz.xyy W/System.err: at com.google.gson.internal.bind.TypeAdapters$16.read(TypeAdapters.java:390)
2021-11-15 19:40:41.740 31771-31771/com.xyz.xyy W/System.err: at com.google.gson.Gson.fromJson(Gson.java:932)
2021-11-15 19:40:41.740 31771-31771/com.xyz.xyy W/System.err: ... 12 more
2021-11-15 19:40:41.740 31771-31771/com.xyz.xyy D/rave logger tag: Error parsing server response

com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected a string but was BEGIN_OBJECT at line 1 column 2 path $
2021-11-15 19:40:41.902 31771-31771/com.xyz.xyy W/System.err: at com.google.gson.Gson.fromJson(Gson.java:944)
2021-11-15 19:40:41.902 31771-31771/com.xyz.xyy W/System.err: at com.google.gson.Gson.fromJson(Gson.java:897)
2021-11-15 19:40:41.902 31771-31771/com.xyz.xyy W/System.err: at com.google.gson.Gson.fromJson(Gson.java:846)
2021-11-15 19:40:41.902 31771-31771/com.xyz.xyy W/System.err: at com.flutterwave.raveandroid.rave_java_commons.NetworkRequestExecutor$1.onResponse(NetworkRequestExecutor.java:40)
2021-11-15 19:40:41.902 31771-31771/com.xyz.xyy W/System.err: at retrofit2.DefaultCallAdapterFactory$ExecutorCallbackCall$1.lambda$onResponse$0$retrofit2-DefaultCallAdapterFactory$ExecutorCallbackCall$1(DefaultCallAdapterFactory.java:89)
2021-11-15 19:40:41.902 31771-31771/com.xyz.xyy W/System.err: at retrofit2.DefaultCallAdapterFactory$ExecutorCallbackCall$1$$ExternalSyntheticLambda1.run(Unknown Source:6)
2021-11-15 19:40:41.902 31771-31771/com.xyz.xyy W/System.err: at android.os.Handler.handleCallback(Handler.java:883)
2021-11-15 19:40:41.902 31771-31771/com.xyz.xyy W/System.err: at android.os.Handler.dispatchMessage(Handler.java:100)
2021-11-15 19:40:41.903 31771-31771/com.xyz.xyy W/System.err: at android.os.Looper.loop(Looper.java:237)
2021-11-15 19:40:41.903 31771-31771/com.xyz.xyy W/System.err: at android.app.ActivityThread.main(ActivityThread.java:7948)
2021-11-15 19:40:41.903 31771-31771/com.xyz.xyy W/System.err: at java.lang.reflect.Method.invoke(Native Method)
2021-11-15 19:40:41.903 31771-31771/com.xyz.xyy W/System.err: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
2021-11-15 19:40:41.903 31771-31771/com.xyz.xyy W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1075)
2021-11-15 19:40:41.903 31771-31771/com.xyz.xyy W/System.err: Caused by: java.lang.IllegalStateException: Expected a string but was BEGIN_OBJECT at line 1 column 2 path $
2021-11-15 19:40:41.903 31771-31771/com.xyz.xyy W/System.err: at com.google.gson.stream.JsonReader.nextString(JsonReader.java:824)
2021-11-15 19:40:41.903 31771-31771/com.xyz.xyy W/System.err: at com.google.gson.internal.bind.TypeAdapters$16.read(TypeAdapters.java:402)
2021-11-15 19:40:41.903 31771-31771/com.xyz.xyy W/System.err: at com.google.gson.internal.bind.TypeAdapters$16.read(TypeAdapters.java:390)
2021-11-15 19:40:41.903 31771-31771/com.xyz.xyy W/System.err: at com.google.gson.Gson.fromJson(Gson.java:932)
2021-11-15 19:40:41.903 31771-31771/com.xyz.xyy W/System.err: ... 12 more
2021-11-15 19:40:41.904 31771-31771/com.xyz.xyy D/rave logger tag: Error parsing server response)

System Information

  • Operating system: 11 & 10
  • Rave version: 2.1.37

Additional Context

@malumbosiwale
Copy link

Did you eventually find a solution to this or we should target SDK 30?

@BayoKwendo
Copy link

any solution on this

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