注册不起作用-服务器返回404错误代码 [英] Signup not working - Server returns 404 Error Code

查看:180
本文介绍了注册不起作用-服务器返回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(未从服务器接收到有效数据").

responseParsingFailed("Received no valid data from server").

当我点击注册URL时(

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屋!

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