1. com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 12. at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:176)
3. at com.google.gson.Gson.fromJson(Gson.java:803)
I am reading the json from stream that I am getting from my server. The same url when I hit in browser i am getting expected json. I am also passing class in fromjson call.
It occurs about 0.4% of the time and together with the fact that it is happening at line 1 column 1 makes me think that it was some temporary network issue.
can anyone help me on this?
Is it really a network issue?
How do I handle it?
|
|
I am not able to reproduce the issue so can't provide anything more detailed. |