-
Notifications
You must be signed in to change notification settings - Fork 3
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
Fails to login #2
Comments
Also I tried using POST and got the same error
Thanks again, Super love the idea of this !!!! |
Running into the same problem
|
That’s quite odd, I was working on adding Home Assistant integration and it was working just fine. I’m currently away from my laptop until tomorrow night so I can’t diagnose the problem further at the moment so I apologise. From what it seems, some accounts may not have the ability to get the information described on line 99. I only have access to a phone right now so I can’t do much. Deploying from the quickfix-20nov branch will help, but will make /api/session inoperable as it will no longer get the data required. https://github.com/aboutdavid/hctb-api/tree/quickfix-20nov |
Gave it a try, different / new error. I think its great that you are thinking about HA integration!
|
That’s super odd. Could you try starting it with a head and see if it successfully logs into the dashboard? https://github.com/aboutdavid/hctb-api/blob/b229ae47b578b7d9f034dc840ce4e3157a3df267/index.js#L60 If you can’t, that’s fine, I just think there could either be different account types or it could just fail to notice that you’re not logged in or something else |
I've managed to somehow spin up a service and used mine and a couple of friend's logins and I can't reproduce this issue. I think the theory of different account types could be true. By the way, are there multiple people associated with your account? As in multiple students connected to one account? |
Yes, for mine I have two bus routes, one for my son in middle school and one for my daughter in high school. I would be happy temporarily change the credentials and then privately share them with you for testing if you think thats whats needed
… On Nov 20, 2023, at 8:00 PM, David M ***@***.***> wrote:
I've managed to somehow spin up a service and used mine and a couple of friend's logins and I can't reproduce this issue. I think the theory of different account types could be true. By the way, are there multiple people associated with your account? As in multiple students connected to one account?
—
Reply to this email directly, view it on GitHub <#2 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAAOG6XR3QU6FHFECC5M36DYFP4KBAVCNFSM6AAAAAA7OWXIOOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRQGA2DONBSHA>.
You are receiving this because you authored the thread.
|
Ah, I think I know the issue. Also, I don't think it would be wise to send credentials to anybody, even if they are changed, as malicious people roam everywhere on the internet. I made this with one person only in my account, so I wasn't able to test all of the edge cases. I'll attempt to fix this later this week once I have stable internet. |
Hi, I recently got around to trying to make this work. I'll push out an update when I am finished with my finals. |
Just a ping from 2024 as someone else hitting this error with two bus routes. |
I think I might have a solution. I will try and add a new method ( |
{
"success": true,
"cookie": ".ASPXFORMSAUTH=... ",
"passengers": [
{
"text": "David",
"value": "..."
}
]
} I'm unsure if every passenger has a different time UUID, however. I could attempt to omit that and just use the names of the times instead of the UUID. |
I think a temporary solution would be commenting out this section: const value = await page.$$eval('option[selected="selected"]', (el) => {
return { name: el[1].innerHTML, person: el[1].value, time: el[2].value };
}); Although, that makes |
I am trying to log in and I'm getting the following error when running the UI
The text was updated successfully, but these errors were encountered: