-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Description
Hi,
I am getting an error while trying to collect the response from a getPaymentOrderDetails call. It seems that the API is not able to convert the response to JSON. Log is shown below. Any help would be greatly appreciated.
INFO [2017-04-18 18:33:33,736] com.instamojo.wrapper.util.HttpUtils: Sending GET request to the url https://test.instamojo.com/v2/gateway/orders/id:MOJO7418005J69013940/
ERROR [2017-04-18 18:33:35,661] io.dropwizard.jersey.errors.LoggingExceptionMapper: Error handling a request: 9b908f70e6e0ef68
! java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $
! at com.google.gson.stream.JsonReader.beginObject(JsonReader.java:388) ~[gson-2.6.2.jar:na]
! at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:209) ~[gson-2.6.2.jar:na]
! ... 64 common frames omitted
! Causing: com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $
! at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:220) ~[gson-2.6.2.jar:na]
! at com.google.gson.Gson.fromJson(Gson.java:879) ~[gson-2.6.2.jar:na]
! at com.google.gson.Gson.fromJson(Gson.java:844) ~[gson-2.6.2.jar:na]
! at com.google.gson.Gson.fromJson(Gson.java:793) ~[gson-2.6.2.jar:na]
! at com.google.gson.Gson.fromJson(Gson.java:765) ~[gson-2.6.2.jar:na]
! at com.instamojo.wrapper.util.JsonUtils.convertJsonStringToObject(JsonUtils.java:27) ~[instamojo-java-1.0.1.jar:na]
! at com.instamojo.wrapper.api.InstamojoImpl.getPaymentOrderDetails(InstamojoImpl.java:257) ~[instamojo-java-1.0.1.jar:na]
! at com.quinetechnologies.cartServer.views.PaymentRedirectView.<init>(PaymentRedirectView.java:25) ~[main/:na]
Metadata
Metadata
Assignees
Labels
No labels