解析错误代码 209 和 -34018 [英] Parse error codes 209 and -34018

查看:26
本文介绍了解析错误代码 209 和 -34018的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我花了几个小时在 Parse 上学习用户管理,认为考虑到它已经是一个成熟的服务这么久,这会很容易.

I have spent several hours learning user management on Parse, thinking it would be easy considering it's been an established service for so long.

关于自动用户"和会话的文档很差.

There is poor documentation around 'automatic user' and sessions.

我正在尝试构建一个允许用户在决定注册之前匿名存在的应用程序(使用 [PFUser enableAutomaticUser]).

I am trying to build an App that allows the user to exist anonymously (using [PFUser enableAutomaticUser]), before they decide to sign up.

注册步骤:

  1. 从用户界面收集用户详细信息
  2. 注销当前自动用户并等待成功
  3. 成功后使用[PFUser user]创建一个用户对象并赋值
  4. 在新用户实例上调用 signUpInBackgroundWithBlock
  1. Gather user details from the UI
  2. Log out current automatic user and wait for success
  3. Upon success create a user object using [PFUser user] and assign values
  4. Call signUpInBackgroundWithBlock on the new user instance

在执行上述操作时,我有时会遇到以下错误(是的,只是有时).

I sometimes get the following errors (yes, only sometimes), when doing the above.

[错误]:PFKeychainStore 无法获取键 'currentUser' 的对象,错误:-34018

[Error]: PFKeychainStore failed to get object for key 'currentUser', with error: -34018

[错误]:无效的会话令牌(代码:209,版本:1.7.0)

[Error]: invalid session token (Code: 209, Version: 1.7.0)

我也得到了一个脏数据库,因为我不知道如何删除之前创建的自动用户.我尝试保留旧用户的对象 ID 并使用 deleteEventually 但这不起作用?

I also end up with a dirty database, because I don't know how to delete the automatic user that was previously created. I tried keeping the object id of the old user around and using deleteEventually but that didn't work?

任何关于如何实现这一目标的建议都会很棒.

Any advice on how you would go about achieving this would be great.

推荐答案

其实这是keychain的一个bug,可以去github搜一下.

Actually, this is a bug of keychain, you can search it at github.

Github 34018 问题

几个月前,苹果的一些员工来我们公司给我们讲课,课后我们问了这个问题,他们也没有给我们解决方案

A few months ago, some apple's staff came our company to give us a course, after course,we asked this question, they also did't give us a solution

这篇关于解析错误代码 209 和 -34018的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆