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

Cod*_*aru 3 sdk mongodb ios swift mongodb-stitch

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)")
})
Run Code Online (Sandbox Code Playgroud)

总是得到这个:

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页面不存在

我做了一些不期望的事情吗?

小智 5

你的代码看起来很好 - 不幸的是,这是我们的问题.

已发布维护版本以修正此问题.版本号是2.0.4.请相应更新Podfile并更新广告连播.