com.google.gson.JsonSyntaxException: Expected a com.google.gson.JsonObject but was com.google.gson.JsonPrimitive

GitHub | seanford | 7 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

    GitHub comment 145#235124964

    GitHub | 7 months ago | seanford
    com.google.gson.JsonSyntaxException: Expected a com.google.gson.JsonObject but was com.google.gson.JsonPrimitive
  2. 0

    GitHub comment 145#236003592

    GitHub | 7 months ago | seanford
    com.google.gson.JsonSyntaxException: Expected a com.google.gson.JsonObject but was com.google.gson.JsonPrimitive
  3. 0

    GitHub comment 161#245275338

    GitHub | 6 months ago | seanford
    com.google.gson.JsonSyntaxException: Expected a com.google.gson.JsonObject but was com.google.gson.JsonPrimitive
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Nest login broken?

    GitHub | 6 months ago | marcfon
    com.google.gson.JsonSyntaxException: Expected a com.google.gson.JsonObject but was com.google.gson.JsonPrimitive
  6. 0

    Nest account linked- JsonSyntaxException:

    GitHub | 3 months ago | smithski
    com.google.gson.JsonSyntaxException: Expected a com.google.gson.JsonObject but was com.google.gson.JsonPrimitive
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. com.google.gson.JsonSyntaxException

    Expected a com.google.gson.JsonObject but was com.google.gson.JsonPrimitive

    at com.google.gson.internal.bind.TypeAdapters$35$1.read()
  2. Gson
    Gson.fromJson
    1. com.google.gson.internal.bind.TypeAdapters$35$1.read(TypeAdapters.java:917)
    2. com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.read(TypeAdapterRuntimeTypeWrapper.java:40)
    3. com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:82)
    4. com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:61)
    5. com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:116)
    6. com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:216)
    7. com.google.gson.Gson.fromJson(Gson.java:879)
    8. com.google.gson.Gson.fromJson(Gson.java:944)
    9. com.google.gson.Gson.fromJson(Gson.java:917)
    9 frames
  3. com.bwssystems.nest
    StructureDeserializer.deserialize
    1. com.bwssystems.nest.protocol.status.StructureDeserializer.deserialize(StructureDeserializer.java:23)
    2. com.bwssystems.nest.protocol.status.StructureDeserializer.deserialize(StructureDeserializer.java:14)
    2 frames
  4. Gson
    Gson.fromJson
    1. com.google.gson.TreeTypeAdapter.read(TreeTypeAdapter.java:58)
    2. com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:116)
    3. com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:216)
    4. com.google.gson.Gson.fromJson(Gson.java:879)
    5. com.google.gson.Gson.fromJson(Gson.java:844)
    6. com.google.gson.Gson.fromJson(Gson.java:793)
    7. com.google.gson.Gson.fromJson(Gson.java:765)
    7 frames
  5. com.bwssystems.nest
    Nest.<init>
    1. com.bwssystems.nest.controller.Nest._getStatus(Nest.java:54)
    2. com.bwssystems.nest.controller.Nest.<init>(Nest.java:45)
    2 frames
  6. com.bwssystems.NestBridge
    NestHome.<init>
    1. com.bwssystems.NestBridge.NestHome.<init>(NestHome.java:38)
    1 frame
  7. com.bwssystems.HABridge
    HABridge.main
    1. com.bwssystems.HABridge.HABridge.main(HABridge.java:68)
    1 frame