{"action":"created","issue":{"url":"https://api.github.com/repos/ParsePlatform/parse-server/issues/935","repository_url":"https://api.github.com/repos/ParsePlatform/parse-server","labels_url":"https://api.github.com/repos/ParsePlatform/parse-server/issues/935/labels{/name}","comments_url":"https://api.github.com/repos/ParsePlatform/parse-server/issues/935/comments","events_url":"https://api.github.com/repos/ParsePlatform/parse-server/issues/935/events","html_url":"https://github.com/ParsePlatform/parse-server/issues/935","id":139637054,"number":935,"title":"User can't login becasue of ParseException related to AuthData","user":{"login":"weengo","id":10067015,"avatar_url":"https://avatars.githubusercontent.com/u/10067015?v=3","gravatar_id":"","url":"https://api.github.com/users/weengo","html_url":"https://github.com/weengo","followers_url":"https://api.github.com/users/weengo/followers","following_url":"https://api.github.com/users/weengo/following{/other_user}","gists_url":"https://api.github.com/users/weengo/gists{/gist_id}","starred_url":"https://api.github.com/users/weengo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weengo/subscriptions","organizations_url":"https://api.github.com/users/weengo/orgs","repos_url":"https://api.github.com/users/weengo/repos","events_url":"https://api.github.com/users/weengo/events{/privacy}","received_events_url":"https://api.github.com/users/weengo/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2016-03-09T16:56:53Z","updated_at":"2016-04-02T03:27:11Z","closed_at":"2016-03-11T16:22:12Z","body":"**Issue**\r\nEvery time I try to login through username/password with a user that was already created on Parse API (before the migration to mongo), I get a ParseException of code -1: **java.lang.ClassCastException: org.json.JSONObject$1 cannot be cast to java.util.Map**. The debug trace points to line 340 of ParseUser.java:\r\n```\r\n339  private Map<String, String> getAuthData(String authType) {\r\n340      return getAuthData().get(authType);\r\n341  }\r\n``` \r\n**Prerequisites** \r\n- I've migrated to AWS Elastic Beanstalk(64bit Amazon Linux 2015.09 v2.0.7, running Node.js 4.2.3) and MongoLab\r\n- I'm running the 2.1.4 of Parse Server.\r\n- I'm testing on Android SDK\r\n\r\n**Steps to reproduce on Android**\r\n- I've changed the endpoint from parse API to my parse server\r\n- Installed the app\r\n- Tried to login with existing user\r\n\r\n**Log from Verbose**\r\nHere we can see that GET actually returns successfully\r\n```\r\nGET /parse/login { host: 'parseserver-xxxx-env.elasticbeanstalk.com',\r\n  'x-real-ip': 'xxxx',\r\n  'x-forwarded-for': 'xxxxx',\r\n  'content-length': '61',\r\n  'accept-encoding': 'gzip',\r\n  'content-type': 'application/json',\r\n  'user-agent': 'Parse Android SDK 1.13.0 (com.xxxx.xxxx/7) API Level 21',\r\n  'x-newrelic-id': 'xxxx==',\r\n  'x-parse-app-build-version': '7',\r\n  'x-parse-app-display-version': '1.1.3.2',\r\n  'x-parse-application-id': 'xxxx',\r\n  'x-parse-client-key': 'xxx',\r\n  'x-parse-client-version': 'a1.13.0',\r\n  'x-parse-installation-id': 'xxxx',\r\n  'x-parse-os-version': '5.0.2',\r\n  'x-forwarded-port': '80',\r\n  'x-forwarded-proto': 'http' } {\r\n  \"username\": \"xxx@xxxx.com\",\r\n  \"password\": \"xxxx\"\r\n}\r\nresponse: {\r\n  \"response\": {\r\n    \"objectId\": \"xxxxxxxx\",\r\n\r\n```\r\n**Possible Similar Issues**\r\n- #639 \r\n"},"comment":{"url":"https://api.github.com/repos/ParsePlatform/parse-server/issues/comments/204638172","html_url":"https://github.com/ParsePlatform/parse-server/issues/935#issuecomment-204638172","issue_url":"https://api.github.com/repos/ParsePlatform/parse-server/issues/935","id":204638172,"user":{"login":"meilers","id":2792041,"avatar_url":"https://avatars.githubusercontent.com/u/2792041?v=3","gravatar_id":"","url":"https://api.github.com/users/meilers","html_url":"https://github.com/meilers","followers_url":"https://api.github.com/users/meilers/followers","following_url":"https://api.github.com/users/meilers/following{/other_user}","gists_url":"https://api.github.com/users/meilers/gists{/gist_id}","starred_url":"https://api.github.com/users/meilers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meilers/subscriptions","organizations_url":"https://api.github.com/users/meilers/orgs","repos_url":"https://api.github.com/users/meilers/repos","events_url":"https://api.github.com/users/meilers/events{/privacy}","received_events_url":"https://api.github.com/users/meilers/received_events","type":"User","site_admin":false},"created_at":"2016-04-02T03:27:11Z","updated_at":"2016-04-02T03:27:11Z","body":"Having the same issue here. Same environment as @weengo, also on Android. In my case my user was created on iOS but I can't get him to log on Android. I investigated the _User object and found that \"_auth_data_anonymous\" is being returned null.\r\n\r\nWhen I removed that field in mongoDB, it worked."}}