云平台数据库,无法操作
发布于 4 年前 作者 pdu 13304 次浏览 来自 问答

我是小程序的管理员,执行云开发数据库删除时,会出现错误,权限不够。

Uncaught (in promise) Error: errCode: -1  | errMsg: document.remove:fail Error: cannot remove document with _id good_20181211114253512-331, please make sure that the document exists and you have the corresponding Write permission; at document.remove api; 

1.  _openid是别人的,

2. 权限已设置为:所有用户可读,仅创建者及管理员可写


1 回复

从字面上理解,和权限无关,这是在update时,你赋值了_id,这个_id的值已经已经存在,重复了非唯一。

回到顶部