我是否正在迁移一个有效的Parse应用程序。
我在保存事件之前和之后使用request.installationId来加载代理用户的安装对象(会话),因为我们附加了一些元数据。
在我迁移的应用上。这似乎导致了一个问题。 request.installationId在before和after事件上返回不同的uuid。事后是正确的,之前是不正确的。
这不再可靠吗?
答案 0 :(得分:0)
It seems the error was caused by not properly passing the users session token with each API call. When migrating to Parse Server from the old hosted parse platform now closed. You need to adapt all of your cloud based api calls for querys, stored procedure calls to include either a users session or the flag to run the call with the master key.
// calling a stored function, note the session token is passed in;
return Parse.Cloud.run('getUserRole', data, {
sessionToken: request.user.getSessionToken()
});
// If you want to run using the master key
return Parse.Cloud.run('getUserRole', data, {
useMasterKey: true
});