com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • error in retrofit response json
    via Stack Overflow by Parth Panchal
    ,
  • Unable to do sonar analysis with load balanced URL
    via by saur...@gmail.com,
  • pragati sharma - Google+
    via by Unknown author,
    • 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:221) at com.google.gson.Gson.fromJson(Gson.java:814) at com.google.gson.Gson.fromJson(Gson.java:779) at retrofit.GsonResponseBodyConverter.convert(GsonResponseBodyConverter.java:36) at retrofit.GsonResponseBodyConverter.convert(GsonResponseBodyConverter.java:24) at retrofit.OkHttpCall.parseResponse(OkHttpCall.java:148) at retrofit.OkHttpCall.access$100(OkHttpCall.java:29) at retrofit.OkHttpCall$1.onResponse(OkHttpCall.java:94) at com.squareup.okhttp.Call$AsyncCall.execute(Call.java:168) at com.squareup.okhttp.internal.NamedRunnable.run(NamedRunnable.java:33) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588) at java.lang.Thread.run(Thread.java:818) Caused by: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $ at com.google.gson.stream.JsonReader.beginObject(JsonReader.java:387) at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:210) ... 12 more

    Users with the same issue

    jf-ast
    jf-ast6 times, last one,
    Nikolay Rybak
    Nikolay Rybak9 times, last one,
    justCodeit
    justCodeit11 times, last one,
    filpgame
    filpgame4 times, last one,
    Emrah Küçük
    Emrah Küçük9 times, last one,
    53 more bugmates