Batch requests throws 404 not found

2019-08-08 03:31发布

I'm using the Google Apps Java client library to develop an Android application. I am trying to send a batch request as explained here.

This is my request code for the discovery endpoint, which you can see has a batchPath field with "batch" as value:

BatchRequest batchRequest = mApi.batch(); 

mApi.insert(mEntity).queue(batchRequest, callback); 

batchRequest.execute();

However I keep getting a 404 error. I have already deployed my rebuilt project and double checked the API url. Why is my request not reaching my generated endpoint?

1条回答
祖国的老花朵
2楼-- · 2019-08-08 04:07

Unfortunately, Cloud Endpoints doesn't support REST batching (which the Java client library is trying to use). One can use JSON-RPC for batching, but most client libraries are REST-based, rather than RPC-based.

查看更多
登录 后发表回答