-
Notifications
You must be signed in to change notification settings - Fork 12
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
login fails often with username/password #91
Comments
What happens when you do the login from the command line a couple times after each other? (Without changing any code) |
then same behaviour. Might be coincidence during my trial, but first login succeeded. Then 10 seconds later I get a timeout on login: So it seems to go from success > timeout on challenge password > invalid usernameOrPassword |
Weird, when I pass the token from the last valid login (in stead of username/password) I seem to get a valid login, but the profileInfo = null. Trying to login after that with username/password results in invalid usernameOrPassword everytime. And after some minutes waiting, I can login again with username/password. |
The issue for that token problem is #90 |
But can you retrieve any other data such as grades and appointments if you login with a token? I can't cause it gives an error while retrieving the privileges from the login, cause they're null |
Could you re-open this issue pls @lieuwex? |
Oh woops this shouldn't have been closed indeed. |
So I installed alpha4, and retested the logging in behaviour. I now made a scheme where I still login every hour to the three different schools/students, and retrieve some information (grades and lessons mostly). I seperated the time between the three schools/students 10 minutes apart. If I have a token, I will first try to login with the token. If that fails I will try to login with username/password as fallback. I notice from my logging that when using the token, it also often fails to login (once every 3 to 4 times). This happens for multiple schools. In short: the login problem still persists. It seems to fail randomly in about 25-35 % of the attempts. This goes for both the username/password method, as for the token method. |
@gruijter that the token fails could be because it expires after some time. Don’t know why the username / password login fails tho. When testing I logged in with and without a token like 2 times a minute and didn’t experience any issues. When I’m home I’ll try to replicate the issue but I can’t really promise anything. |
@idiidk You might be correct on the token expiration. When looking at my logs so far it seems to fail the second hour after a login. So the token seems to expire after one hour, two hours at most. I think the token handling deserves a seperate issue/feauture request :) Concerning the failed login: This only happens at one of the three schools, and seems to occur random. I get the following message:
|
I do a login 24/7, once an hour, using username/password, at three different schools. For one school the login fails around once every 3 to 4 times. This happens in the test password part:
MagisterJS/src/magister.js
Line 458 in 017f475
Error: InvalidUsernameOrPassword
at /node_modules/magister.js/lib/magister.js:556:11
at Generator.next ()
at step (/node_modules/magister.js/lib/magister.js:132:191)
at /node_modules/magister.js/lib/magister.js:132:361
at
at process._tickCallback (internal/process/next_tick.js:189:7)
The text was updated successfully, but these errors were encountered: