使用 REST API 查询类有时会返回错误 119

问题描述 投票:0回答:1
curl -X GET \
  -H "X-Parse-Application-Id: b9ba47bb591945ffba52fc837c9a751fa4b8904b" \
  https://parse_server_url/parse/classes/Task
{"code":119,"error":"This user is not allowed to access non-existent class: Task"}

有时返回该值,有时返回实际值。 日志没有显示任何相关性。

对于为什么有时会发生这种情况有什么想法吗?

react-native rest parse-platform
1个回答
0
投票

请确保在呼叫端点时包含

X-Parse-REST-API-Key
标头。另一件需要考虑的事情是 ACL 和 CLP,因为您没有在标头中传递任何
X-Parse-Session-Token
来验证请求。您应该设置对类任务的公共访问权限,直到您测试这样的请求。 docs 中错误代码 119 的定义是

错误码提示客户端不允许该操作。

© www.soinside.com 2019 - 2024. All rights reserved.