Saru
Saru

Reputation: 861

Signup not working - Server returns 404 Error Code

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": "[email protected]", "password": "password"}) as part of the body,

the server returns:

404 page not found

Am I doing anything that's not expected?

Upvotes: 3

Views: 321

Answers (1)

jsflax
jsflax

Reputation: 116

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.

Upvotes: 5

Related Questions