Backendless Support
 
Answered

sign up error

Hello,

I try to sign up but get I the next error:

FAULT = '404' [HttpEngine: INVALID statusCode 404] <HttpEngine: INVALID statusCode 404>

The code below which I use for signing up:

BackendlessUser *user = [BackendlessUser new];

user.password = password;

[user setProperty:@"email" object:email];

user.name = username;

[backendless.userService registering:user response:^(BackendlessUser *user) {

if (successBlock) {

successBlock();

}

} error:^(Fault *error) {

failureBlock(nil);

}];

Leave a Comment

Comments (18)

photo
1

Hi Ksenya,

Do you work with the Cloud version of Backendless or Backendless Pro (the self-hosted version)?

Did you call the initApp function in your app prior to making an API call?

Regards,

Mark

photo
1

I'm using Cloud version.

Yeah, I call initApp before I make API call.

photo
1

What version of the Backendless SDK for iOS do you use?

photo
1

I instaled it like pod

Backendless 3.0.44

photo
1

Does the error happen every time you run the code?

photo
1

Yes

photo
1

What is the version number you used in the initApp call?

photo
1

v.1

photo
1

Did you change/rename the version number? The default value is "v1"

photo
1

Current AppStore version is 1.3. Should it be like there?

photo
1

No, it should be the version of the backend, like it is shown here:

3dccb81d60747221042704bcef0e2ba8

photo
1

Ok, backend version is correspond to initApp.

Earlier we used Parse, FYI

photo
1

So you have "v1" in the initApp call and still getting 404 ?

photo
1

Could you please make sure the initApp call is made prior to user registration? And also send a screenshot of the code where the app initialization takes place to support@backendless.com?

Thanks!

photo
1

Ok, no problem.

photo
1

I've understood what was wrong. Thanks for help :-)

photo
1

Sounds like a problem is resolved. Do not hesitate to contact us again when you need help.

Mark

photo