parse4j icon indicating copy to clipboard operation
parse4j copied to clipboard

ParseUser Still broken

Open PauloxD opened this issue 9 years ago • 5 comments

I can't seem to be able to even log in. If I use the login() method, I get an error

"Exception in thread "pool-1-thread-7" java.lang.IllegalArgumentException: ParseFile must be saved before being set on a ParseObject."

If I use the logIn() method, I can only return the username. All others return null.

If I use the loginInBackground() Method, I receive the error:

"Inherited abstract methods are not accessible and could not be implemented"

Is anyone getting these errors or know how to fix?

Thanks

PauloxD avatar Mar 27 '15 18:03 PauloxD

Yes, there is a problem with endpoint name. The bug is introduced from the commit with hash a58eae9 . May be the committer didn't run the test cases. May be this commit should be reverted.

nickolayrusev avatar Mar 31 '15 13:03 nickolayrusev

Is there anything we can do in the meantime? It doesn't seem to be updated regularly.

PauloxD avatar Mar 31 '15 13:03 PauloxD

The repo is updated regularly. If you create pull request the maintainer will review it and will merge into the next release. without new build everything that I will suggest to do will be a very dirty hack. If you want dirty hack - see the commit a58eae9 and just copy the content of the ParseUser class into new class - MyParseUser and replace "_User" with "users" (revert it manually) and wherever you want to use ParseUser you will use MyParse user.

nickolayrusev avatar Mar 31 '15 17:03 nickolayrusev

I did a little hack with this where when a user logs in with .login() it doesn't do a check on the ParseFiles. See my commit f4c024e

passabilities avatar Mar 31 '15 18:03 passabilities

I'm getting "Exception in thread "main" org.json.JSONException: A JSONObject text must begin with '{' at 1 [character 2 line 1]" when attempting to signup() a user, is this related? Is this JSON object not being built properly? I've verified the endpoint works creating users via POSTMAN.

Nevermind, changing the input to users vs _User or whatever works!

raxxus85 avatar Apr 23 '15 17:04 raxxus85