Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to login using js sdk #53

Closed
shuai-zh opened this issue Oct 14, 2015 · 4 comments
Closed

Unable to login using js sdk #53

shuai-zh opened this issue Oct 14, 2015 · 4 comments

Comments

@shuai-zh
Copy link

I was trying to login a user using following code from the docs:

<script src="http://www.parsecdn.com/js/parse-latest.js"></script>
Parse.User.logIn("myname", "mypass", {
  success: function(user) {
    // Do stuff after successful login.
  },
  error: function(user, error) {
    // The login failed. Check error to see why.
  }
});

The server returned 404 and the response was

{"code":101,"error":"invalid login parameters"}

I also found out that the sample todo app also has this issue.

Is there anything wrong with the login service?

@parse-github-bot
Copy link

Thank you for your feedback. We prioritize issues that have clear and concise repro steps. Please see our Bug Reporting Guidelines about what information should be added to this issue.

Please try the latest SDK. Our release notes have details about what issues were fixed in each release.

In addition, you might find the following resources helpful:

@wangmengyan95
Copy link
Contributor

Hi @chocstarfish, this exception means your username or password is incorrect, could you make sure this user exists in your data browser?

@wangmengyan95 wangmengyan95 self-assigned this Oct 14, 2015
@shuai-zh
Copy link
Author

Thank you @wangmengyan95 ! I in fact used the wrong credentials, but it would be easier to understand if the server return a more specific error message. Closing this.

@rayfranco
Copy link

Digging up this issue because I had the same struggle, the guide leads us wrong. There is no user parameter passed to the callback (which makes sense) so you should just do this:

error: function(error)

instead of:

error: function(user, error)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants