-
Notifications
You must be signed in to change notification settings - Fork 11
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
Error in line 318 (index.js) #29
Comments
Sorry that you're running into issues. I think this may be related to #28. There's a (currently) undocumented parameter to .getCourses in the case that you are enrolled in multiple schools in I.C. Let me know if messing around with that param yields any results. Currently, this library is in a weird limbo space when it comes to support because I (the current maintainer) no longer have access to Infinite Campus. I need to go through the list of people who want to become maintainers and set up some kind of system for issue/PR lifecycle stuff. |
@qwazwsx I have access to Infinite Campus. I am also interested in becoming a maintainer. I would love to help to keep up a great project like this. |
Thanks, @furkanayilmaz! Right now I've got like 4 or 5 people interested, but I haven't had time to reply to anybody just yet. My goal for the maintenance of this library would look like a Trello board or something similar where there is a clear pipeline for issues/requests with checkboxes so that the maintainers are all on the same page and can review and test updates to ensure the stability of this library. The pipeline might look something like this:
Bug Fix PR comes in
Enhancement PR comes in
I think an important part of ensuring the quality, stability, and security of this library going forward is creating a test suite so maintainers can easily test that PR's aren't breaking current functionality. It's difficult because this library has to support a ton of different versions of the I.C. server :( Anyways, this got a little off-topic. Oops. The broken notification link is a known issue that needs more investigation. A few months ago I.C. changed the way notifications work which broke this library. The empty Sorry that I'm not able to provide quality support for this library. Eventually, there will be a gaggle of maintainers here to make sure this library stays alive, but in the interim its a little janky. I appreciate people's patience during this transitional period. :) |
@qwazwsx I think you should try zenhub. The company I was working at before was using it. It is very good on keeping track on everything and etc. About the error, setting the schoolIndex to 0 did seem to fixed the issue. I am also looking into the issue for the notifications not showing properly. So hopefully I will be able to come up with a good solution. |
@qwazwsx Do you know when we can start maintaining this project? Last time, you were saying that you needed to go over list of people who are would like to maintain! Ever since, I haven't heard back and I wanted to check up. |
hey - i'd like to help maintain this too; i'm a student as of now and i have access to IC. @qwazwsx |
When I am trying to run the demo application I am getting the notifications back however, the link is not valid in the notification ( link: 'https://utcloud1.infinitecampus.org/campus/undefinedundefined',)
Not only that looks like there is an error on line 318 (index.js) that is causing problems) #
![Screen Shot 2022-10-23 at 6 13 49 PM](https://user-images.githubusercontent.com/46174893/197425315-31543c09-4d8f-422a-b372-28249ce660c1.png)
![Screen Shot 2022-10-23 at 6 13 54 PM](https://user-images.githubusercontent.com/46174893/197425319-7fe1ee80-b5df-4916-ab6c-80eb124ed9b6.png)
`const InfiniteCampus = require('infinite-campus')
// log in District Name State Username Password
const user = new InfiniteCampus('xxxxx', 'xx', 'xxxxxxxx', 'xxxxxxxx')
// wait until we are done logging in
user.on('ready', () => {
// now that we are logged in...
// get grades from all courses, returns an array of terms containing class information (see docs)
user.getCourses().then((terms) => {
console.log(terms)
// [{name:"Q1", courses: [{name: "1 English", grades:{}, ...}, ...]}, ... ]
})
// get the last 20 notifications
user.getNotifications(20).then((notifications) => {
console.log(notifications)
// [{id: "1111", test: "BOB recieved a new grade of A", timestamp: 1234, read: false, ... }, ...]
})
})
// listen for any errors thrown while logging in
user.on('error', (err) => {
console.log('Error while Logging in. Bad credentials.' + err)
})`
The text was updated successfully, but these errors were encountered: