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 (26)

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
1

let VERSION_NUM = "v1"

backendless!.initApp( App_ID, secret: SECRET_KEY, version: VERSION_NUM);

Why am i getting this error !!!

photo
1

Perhaps you're using SDK for the 3.x version with the version 4 of the backend?

photo
1

How may I know the version ,or how can I solve it ?

photo
photo
1

How may I know the version ,or how can I solve it ?

photo
1

the version of the backend is shown in Backendless console, it is a number right next to the Backendless logo.

The version of the client SDK is what you specified in your pod, you should be able to find out what you have using the pod utility.

photo
1

the version of the backend is 4.0.0 ,so I updated the pod file to : pod 'Backendless', '~> 4.0b'

and this what I have used ;

let App_ID = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx"

let secret_key = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx"

let VERSION_NUM ="v4.0.0"

and now I got 404 ??!!

photo
1

I tried : let VERSION_NUM ="v4.0.0"

it's not worked

photo
1

I updated the pod with

pod 'Backendless', '4.0b2'

but the issue still there

photo