Java Google api AndroidPublisher InApp产品更新返回内部服务器错误500

Java Google api AndroidPublisher InApp产品更新返回内部服务器错误500,java,google-api,google-api-java-client,Java,Google Api,Google Api Java Client,在使用AndroidPublisher进行Java开发时,我试图更新InAppProduct对象。 首先,我使用以下方法获取对象: AndroidPublisher.Inappproducts.Get get = inappproducts.get(packageName, skuName); InAppProduct inAppProduct = get.execute(); AndroidPublisher.Inappproducts.Update update = inappprod

在使用AndroidPublisher进行Java开发时,我试图更新InAppProduct对象。 首先,我使用以下方法获取对象:

AndroidPublisher.Inappproducts.Get get = 
inappproducts.get(packageName, skuName);
InAppProduct inAppProduct = get.execute();
AndroidPublisher.Inappproducts.Update update = 
inappproducts.update(packageName,skuName,inAppProduct);

update.execute();
然后我根据我的逻辑操纵它 并尝试使用以下方法更新对象:

AndroidPublisher.Inappproducts.Get get = 
inappproducts.get(packageName, skuName);
InAppProduct inAppProduct = get.execute();
AndroidPublisher.Inappproducts.Update update = 
inappproducts.update(packageName,skuName,inAppProduct);

update.execute();
我收到以下错误消息:

com.google.api.client.googleapis.json.GoogleJsonResponseException: 
500 Internal Server Error
{
"code" : 500,
"message" : null
}

你知道为什么会这样吗?我该如何解决呢?

据我所知,“内部服务器错误”只是一个服务器故障。你最好的办法是抓住它,然后再次尝试运行请求。我已经试了一遍又一遍,不要认为这是一个简单的临时服务器故障。