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

client.attendanceCodes.all() - Object reference not set to an instance of an object. #14

Open
iiminov opened this issue Mar 16, 2023 · 1 comment

Comments

@iiminov
Copy link

iiminov commented Mar 16, 2023

I suspect client.attendanceCodes.all() is throwing an object reference error because the response does not come back as paged results.

EndPointsTests.cs - does not include a test case for attendance codes. Otherwise, it would have been picked up.

I suspect the issues is that code expects to get nextPage property and in this case it doesn't as per the code snipet from DotNetClient/TestWondeClient/Program.cs

  iterate(students);
  if (students.nextPage())
    iterate(students);
  if (students.previousPage())
    iterate(students);
@LeeA4E
Copy link

LeeA4E commented Sep 25, 2023

Hi, get the same issue. Also if you include the school with its ID, you don't even have the class for attendancodes,

e.g
client.school(wondeSchoolID).attendanceCodes.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

2 participants