Error saving User on Ionic Platform Beta

Hi,

Everytime I try to save an user with:

user.save();

I get this error:

Failed to load resource: the server responded with a status of 422 (UNPROCESSABLE ENTITY) (https://api.ionic.io/auth/users/ae0ac55c-085e-4943-b302-2db9ea19fc78)
Ionic User: Object {response: XMLHttpRequest, error: Error}

Prior to this I’m executing Ionic.Auth.signup and Ionic.Auth.login and I can see the new user is populated on https://apps.ionic.io/app/{app_code}/users/list

I also call to user.isAuthenticated() and this is returning true …

Why can’t I call user.save()? Do I need to perform any more authentation step or call saver() in a different way?

Thanks!

Jorge

1 Like

Analyzing the error this is shown:

"Field may not be null"

But I can’t figure which field is null is this request …

Down someone know how to perform a User save action on Platform Beta?

Probably a little late for a reply here,
but just in case someone is looking for an answer.

When setting a user, Ionic is looking for an email address and password:

var details = { 'email': '$scope.data.email', 'password': $scope.data.password } Ionic.Auth.signup(details).then( function(user){ user.migrate(); user.save(); // save the user to persist the migration changes console.log('success'); }, function(user){ console(user + 'not added to ionic') } );

This will register the user

I tried this and still not able to save the user.