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

TypeError: Cannot read properties of undefined (reading 'A.STRM') #17

Open
Froggymine opened this issue Jan 23, 2025 · 2 comments
Open

Comments

@Froggymine
Copy link

On chrome, using the plugin from https://myadelaide.uni.adelaide.edu.au/#/home/ while logged in gives the following log:

2025-01-23T05:56:54.015Z [INFO] Chrome main.js initialised
2025-01-23T05:56:55.727Z [INFO] Fetching data from API
2025-01-23T05:56:55.736Z [INFO] Fetched access token of user
2025-01-23T05:56:55.736Z [INFO] Fetching semester code
2025-01-23T05:56:56.219Z [INFO] Fetched semester code
2025-01-23T05:56:56.219Z [INFO] Parsed semester code
2025-01-23T05:56:56.219Z [ERROR] TypeError: Cannot read properties of undefined (reading 'A.STRM')
2025-01-23T05:56:56.220Z [INFO] Fetching timetable data
2025-01-23T05:56:56.589Z [INFO] Fetched timetable data
2025-01-23T05:56:56.590Z [INFO] Parsed timetable data
2025-01-23T05:56:56.591Z [INFO] Parsed JSON into iCal
2025-01-23T05:56:56.593Z [INFO] Generated iCal file with file name: blob:chrome-extension://egakamjbdhjpjanbjaaikcjlcbclmbjg/2ad5e385-c398-4736-ac5a-03f2c69a32e8
2025-01-23T05:56:56.593Z [INFO] Downloaded iCal file

The resulting ical file has no events:

BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//sebbo.net//ical-generator//EN
NAME:University
X-WR-CALNAME:University
TIMEZONE-ID:Australia/Adelaide
X-WR-TIMEZONE:Australia/Adelaide
X-LIC-LOCATION:Australia/Adelaide
END:VCALENDAR
@rayokamoto
Copy link
Owner

rayokamoto commented Jan 23, 2025

I believe this error is due to it currently being summer school, rather than semester 1. I face this same issue as I don't have any classes for summer school that is on my timetable.

The way the tool works currently is that it relies on getting the semester code from the current semester / teaching period, although I might make it so that all semesters that you are enrolled into can be selected for calendar export.

@Froggymine
Copy link
Author

Good to know, thank you :)

@rayokamoto rayokamoto marked this as a duplicate of #18 Jan 28, 2025
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