问题:注册无效 - 服务器返回 404 错误代码

MongoDB Stitch:iOS SDK - 注册问题:

我试过这个:

let stitchClient = StitchClient(appId: "<my-app-id>")
stitchClient.register(email: email, password: password).then({ () in

    print("Signed up here")
})
.catch({ (err) in

    print("Sign up fu**ed up: \(err)")
})

并且总是得到这个:

responseParsingFailed("没有收到来自服务器的有效数据")。

当我点击注册网址时(https://stitch.mongodb.com/api/client/v2.0/app/my-app-name/auth/providers/local-userpass/register/)

将这些参数 ({"email": "what@mailinator.com", "password": "password"}) 作为正文的一部分,

服务器返回:

404 页面未找到

我在做任何意想不到的事情吗?

解答

你的代码看起来不错——不幸的是,这对我们来说是一个问题。

已发布维护版本以修正此问题。版本号为 2.0.4。请相应地更新您的Podfile并更新 pod。

Logo

MongoDB社区为您提供最前沿的新闻资讯和知识内容

更多推荐