groupPushClient.sendGroupPush(payload) 返回的结果报错

用户8317100
2020-08-04 04:03 154 1
PushPayload 内容:

{"platform":"all","audience":"all","notification":{"alert":" 我是内容"},"options":{"sendno":1506002107,"apns_production":false}}

堆栈信息显示

(Map)this._gson.fromJson(response.responseContent, (new TypeToken<Map<String, PushResult>>() {
        }).getType());

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

按照官方的demo
https://github.com/jpush/jpush-api-java-client/blob/master/example/main/java/cn/jpush/api/examples/PushExample.java#L226 也报同样的错误,而前段时间是正常的,请检查返回值是不是变了

2个回答

热门排序
  • 用户8317100
    2020-08-14 09:22

    最新版本和3.3.10 都有这个问题,demo也有这个问题

  • 极光5116754
    2020-08-05 03:37

    用的什么版本,试过demo吗

gptbots-widget