java sdk在国内节点 work正常。 切换至美国节点,可以查询数据,但无法新增,修改数据。
AVOSCloud.useAVCloudUS();
AVOSCloud.initialize("aa",
"lbb", "cc");
AVOSCloud.setShouldUseMasterKey(true);
AVObject test=new AVObject("TestObject");
test.put("point", 100);
test.save();
debug 信息:
17:12:41.278 [main] DEBUG com.avos.avoscloud.AVOSCloud - LogUtil$avlog->d->28:
curl -X POST -H "X-LC-Id: bspTHeVGgVkwuNht0vRekKWX-xxxxx" -H "X-LC-Key: YourAppKey" -H "Content-Type: application/json" -d '{
"requests":[{
"body":{
"__children":[],
"__internalId":"2d7c4263-d9fe-491e-a555-a0c1488bbbcd",
"point":100
},
"method":"POST",
"new":true,
"path":"/1.1/classes/TestObject"
}]
}' https://api.leancloud.cn/1.1/batch/save
17:12:44.116 [OkHttp https://app-router.leancloud.cn/1/route?appId=bspTHeVGgVkwuNht0vRekKWX-xxxx] DEBUG com.avos.avoscloud.AVOSCloud - LogUtil$avlog->d->28: {"ttl":3600,"push_router_server":"router-a0-push.leancloud.cn","api_server":"us-api.leancloud.cn"}
17:12:55.871 [main] DEBUG com.avos.avoscloud.AVOSCloud - LogUtil$avlog->d->28: {"ttl":3600,"push_router_server":"router-a0-push.leancloud.cn","api_server":"us-api.leancloud.cn"}