创建InAppProducts返回500错误

时间:2018-07-31 12:37:54

标签: android google-api google-api-client google-api-java-client

我正在尝试使用Android Publisher API以编程方式创建InApp产品。

这是我的要求:

POST https://www.googleapis.com/androidpublisher/v3/applications/net.playq.dmitry.inapptest/inappproducts?access_token=<valid_access_token>

{
  "sku" : "b2b876c34f3145a6a7d41a0a76969929",
  "purchaseType" : "managedUser",
  "defaultPrice" : {
    "priceMicros" : "199000000",
    "currency" : "USD"
  },
  "listings" : {
    "en-US" : {
      "title" : "Title",
      "description" : "Description"
    }
  },
  "status": "active",
  "defaultLanguage" : "en-US"
}

由于未知原因,它仅返回500个错误:

{
    "error": {
        "code": 500,
        "message": null
    }
}

可能是某个地方有些愚蠢的NullPointerException。有人以前看过这个问题吗?

0 个答案:

没有答案