You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{
"results": {
"message": "Suppression list successfully updated"
}
}
so gson shits the bed
com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_ARRAY but was BEGIN_OBJECT at line 1 column 13 path $.results
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:226)
at com.google.gson.Gson.fromJson(Gson.java:932)
at com.google.gson.Gson.fromJson(Gson.java:897)
at com.google.gson.Gson.fromJson(Gson.java:846)
at com.sparkpost.model.responses.Response.decode(Response.java:47)
at com.sparkpost.resources.ResourceSuppressionList.insertOrUpdate(ResourceSuppressionList.java:32)
The text was updated successfully, but these errors were encountered:
In com.sparkpost.resources.ResourceSuppressionList the insertOrUpdate methods do this:
but the api returns this:
so gson shits the bed
The text was updated successfully, but these errors were encountered: