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

nullpointer exception when token mismatch #757

Open
nelsonmunoz opened this Issue May 23, 2018 · 1 comment

Comments

Projects
None yet
1 participant
@nelsonmunoz

nelsonmunoz commented May 23, 2018

When testing lowlevelinterface i can login repeatedly (for example, once from ap, once from console), apparently both tokens are valid simultaneously, but when using set or add methods a java nullpointer exception is raised. I know I should not allow my app to try to log in again while the user is valid, but it may be nice to catch this error properly (would have saved me a lot of time)

@nelsonmunoz

This comment has been minimized.

nelsonmunoz commented May 23, 2018

Actually, I don't seem to be able to log out:

{"request":{"interface":"AuthInterface","method":"logout","parameters":{}},"token":"6d282acb99a151472429a5e3cdcb1333df2adc5bd0365cfc97a4b3bc4d64b9e304b435c7b412f53cf15429d7af32d503"}

{"response":{"result":{}}}

Then

{"request":{"interface":"AuthInterface","method":"isLoggedIn","parameters":{}},"token":"6d282acb99a151472429a5e3cdcb1333df2adc5bd0365cfc97a4b3bc4d64b9e304b435c7b412f53cf15429d7af32d503"}

{"response":{"result":true}}

What am I doing wrong?

Any subsequent call works normally

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment