Last few days, our support team is receiving some strange behaviors regarding JS SDK, it seems that is related with a response message when we are trying to perform some request on your side following the last release. For example, if we try to work with the method Login from Parse Server, it will have the structure below:
Parse.User.logIn("myname", "mypass", {
success: function(user) {
alert(user);
},
error: function(user, error) {
alert(error);
}
});
We were able to check the message below in our Browser:
As you can see, it is returning the response from the Login method, but not is showing the console.log inserted previously in the Code. So, the solution was to change the callback to the below:
Parse.User.logIn("natalia@", "123456").then(function(results) {
alert(results);
}).catch(function(error) {
alert(error);
});
With the above code, the alert that was expected as a result of the method was called.
Anyway, if you want to use the first code with the callback without any changes, you can use the Parse SDK 1.1.11 available at the link below to apply in your code:
https://cdnjs.cloudflare.com/ajax/libs/parse/1.11.1/parse.min.js
That is a simple Troubleshooting regarding this issue that users are facing with a big frequency.
In case you need any help or a function/link doesn't work, please contact our team via chat!
Comments
0 comments
Please sign in to leave a comment.