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

Stack Overflow | Zidane | 9 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    How to solve retrofit Conversion Exception when converting to json string

    Stack Overflow | 9 months ago | Zidane
    java.lang.RuntimeException: retrofit.converter.ConversionException: com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $
  2. 0

    IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path

    GitHub | 1 year ago | FHellmann
    java.lang.RuntimeException: retrofit.converter.ConversionException: com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $
  3. 0

    pragati sharma - Google+

    google.com | 1 year ago
    java.lang.RuntimeException: retrofit.converter.ConversionException: com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    There is no Ghost Blog at {blogUrl}

    GitHub | 12 months ago | charany1
    com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $
  6. 0

    There is no Ghost Blog at {blogUrl}

    GitHub | 12 months ago | charany1
    com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.IllegalStateException

    Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $

    at com.google.gson.stream.JsonReader.beginObject()
  2. Gson
    Gson.fromJson
    1. com.google.gson.stream.JsonReader.beginObject(JsonReader.java:387)
    2. com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:189)
    3. com.google.gson.Gson.fromJson(Gson.java:810)
    4. com.google.gson.Gson.fromJson(Gson.java:775)
    4 frames
  3. Retrofit
    RetrofitError.getBodyAs
    1. retrofit.converter.GsonConverter.fromBody(GsonConverter.java:63)
    2. retrofit.RetrofitError.getBodyAs(RetrofitError.java:137)
    2 frames
  4. com.xera.deviceinsight
    AppTimeUsageRecorder$2.failure
    1. com.xera.deviceinsight.structs.AppTimeUsageRecorder$2.failure(AppTimeUsageRecorder.java:163)
    1 frame
  5. Retrofit
    CallbackRunnable$2.run
    1. retrofit.CallbackRunnable$2.run(CallbackRunnable.java:53)
    1 frame
  6. Android Platform
    ActivityThread.main
    1. android.os.Handler.handleCallback(Handler.java:730)
    2. android.os.Handler.dispatchMessage(Handler.java:92)
    3. android.os.Looper.loop(Looper.java:176)
    4. android.app.ActivityThread.main(ActivityThread.java:5419)
    4 frames
  7. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invokeNative(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:525)
    2 frames
  8. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1046)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:862)
    2 frames
  9. Android Platform
    NativeStart.main
    1. dalvik.system.NativeStart.main(Native Method)
    1 frame