Signup not working - Server returns 404 Error Code

為{幸葍}努か 提交于 2019-12-10 22:05:06

问题


MongoDB Stitch: iOS SDK - Signup Issue:

I tried this:

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)")
})

and always getting this:

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/)

with these params ({"email": "what@mailinator.com", "password": "password"}) as part of the body,

the server returns:

404 page not found

Am I doing anything that's not expected?


回答1:


Your code looks fine– this was unfortunately an issue on our end.

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.



来源:https://stackoverflow.com/questions/47959741/signup-not-working-server-returns-404-error-code

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!