UNPROCESSABLE ENTITY saving user on Ionic Platform Beta

Viewed 596

I have moved from Ionic Platform Alpha to Beta.

I have implemented signup and login with success, but everytime I try to execute save action I get this error:

Failed to load resource: the server responded with
a status of 422 (UNPROCESSABLE ENTITY) 

Just a snippet of my code:

user = Ionic.User.current();
console.log("User %s is authenticated: %s", user.id, user.isAuthenticated());
user.set('age', '25');
user.save();

This is the output:

User ee18171e-1384-4911-98ed-e1b2fc6e89bf is authenticated: true
Failed to load resource: the server responded with a status
of 422 (UNPROCESSABLE ENTITY) (https://api.ionic.io/auth/user...
Ionic User: Object {response: XMLHttpRequest, error: Error}

Analyzing the error this is shown:

Field may not be null

But I can't figure which field is null is this request ....

Does someone know how to perform a save action on Ionic Platform Beta?

1 Answers
Related