注册不起作用-服务器返回404错误代码 [英] Signup not working - Server returns 404 Error Code
问题描述
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(未从服务器接收到有效数据").
responseParsingFailed("Received no valid data from server").
When I hit the signup URL(https://stitch.mongodb.com/api/client/v2.0/app/my-app-name/auth/providers/local-userpass/register/)
将这些参数({"email":"what@mailinator.com","password":"password"})作为正文的一部分,
with these params ({"email": "what@mailinator.com", "password": "password"}) as part of the body,
服务器返回:
找不到404页
404 page not found
我在做意外的事情吗?
推荐答案
您的代码看起来不错–不幸的是,这对我们而言是个问题.
Your code looks fine– this was unfortunately an issue on our end.
已发布维护版本以修正此问题.版本号是2.0.4.请相应地更新您的Podfile
并更新广告连播.
A maintenance release has been released to amend this issue. The version number is 2.0.4. Please update your Podfile
accordingly and update the pod.
这篇关于注册不起作用-服务器返回404错误代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!