保存用户造成错误:没有找到对象的更新(代码:101,版本:1.2.19)保存用户的原因没有找到对象错误
[PFGeoPoint geoPointForCurrentLocationInBackground:^(PFGeoPoint *geoPoint, NSError *error) {
if (!error) {
[PFUser currentUser].location = geoPoint;
[[PFUser currentUser] save];
}
}];
我究竟做错了什么?
HTTP POST请求https://api.parse.com/2/update
{
"iid": "[redacted]",
"classname": "_User",
"data": {
"email": "[email protected]",
"objectId": "[redacted]"
},
"session_token": "[redacted]",
"v": "i1.2.19",
"uuid": "[redacted]"
}
响应
{
"code": 101,
"error": "object not found for update"
}
获得与保存在背景方法中一样的错误。 – MonkeyBonkey