Skip to content
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

Issue when getting Student Info #14

Open
Damako4 opened this issue Sep 21, 2020 · 2 comments
Open

Issue when getting Student Info #14

Damako4 opened this issue Sep 21, 2020 · 2 comments

Comments

@Damako4
Copy link

Damako4 commented Sep 21, 2020

I am trying to use the function user.getStudentsInfo() to get the students info and then iterate through the students using
user.getStudentsInfo().then((students) => { students.forEach((info) => { console.log(info.student.currentGPA); }) })
But when ran, the console returns Couldn't login PowerSchool user: TypeError: user.getStudentsInfo is not a function
In your test.js file, this is the function used to get the student info. I continue to look through your API and I notice that getStudentsInfo() is in fact there in the User model file. Then I try using the getStudentsInfo() function (plural students) and I get TypeError: data.assignmentScores.map is not a function Is there something wrong with the API, as this previously worked for me.

@Blummer92
Copy link

I'm having the same issue

@Irom1
Copy link

Irom1 commented Jan 18, 2023

I wasn't initially encountering this issue (was working for months, stopped out of the blue with no changed code), but now is also happening for me. Might it have to do with how the administration configured something? Does it work for anyone at all?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants