Skip to content

Anyone else getting login Expired after obtaining a session_id? #17

@barrown

Description

@barrown

This might be an issue with this repo, or might be a classcharts problem, I can't tell. After 5+ months of flawless working, since 26th April I am now getting an error every time I request data - even after a successful login.

To reproduce:
Hit "https://www.classcharts.com/apiv2student/login" with the right header, and get back ["meta"]["session_id"] to use in subsequent calls.

Hit "https://www.classcharts.com/apiv2student/timetable/..." with the {"Authorization": "Basic " + session_id} header.

I get a 200 HTTP response, but the text is:
{"success":0,"expired":1,"error":"You are not logged in. [1]","meta":[]}

However, when I change my code or DOB I get this back from the /login/ endpoint:
{"success":0,"expired":0,"error":"Invalid credentials. If you do not have your pupil code, or have forgotten it, please contact your school. Your school contact details can usually be found on your school's website.","meta":[]}
which suggests that my credentials are correct, and the fact that I got a session_id back, means that I am logged in.

So, is anyone else having this issue and/or have the APIs changed?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions