loumadev / EdupageAPI

Simple node.js package to manage your EduPage account.
GNU General Public License v3.0
24 stars 2 forks source link

Failed to parse timetable data from html #12

Closed 0Charliecat closed 1 year ago

0Charliecat commented 2 years ago

hey, me again

am sorry to bother you this


#
# A fatal error has occurred!
#
# This is probably not your fault!
# If this happens often, please consider reporting a bug.
#
# Error thrown:
#  ParseError: Failed to parse timetable data from html
#      at Function.parse (/home/runner/edupejc/node_modules/edupage-api/src/Timetable.js:70:51)
#      at Edupage.fetchTimetablesForDates (/home/runner/edupejc/node_modules/edupage-api/src/Edupage.js:466:27)
#      at processTicksAndRejections (node:internal/process/task_queues:96:5)
#      at async educal (/home/runner/edupejc/index.js:43:24)
#
# Summary:
#  Time: Sun Jan 09 2022 19:23:55 GMT+0000 (Coordinated Universal Time)
#  EdupageAPI version: v0.7.14
#  Node.js version: v16.7.0
#  Error log: /home/runner/edupejc/node_modules/edupage-api/logs/fatal_error_2022-01-09T19-23-55Z.json
#
# If you would like to submit an issue, please visit:
#  > https://github.com/loumadev/EdupageAPI/issues
#  (Please, include this error message + error log)
#

/home/runner/edupejc/node_modules/edupage-api/src/Edupage.js:467
        const timetables = iterate(_json.dates).map(([i, date, data]) => new Timetable(data, date, this));
                                         ^

TypeError: Cannot read property 'dates' of undefined
    at Edupage.fetchTimetablesForDates (/home/runner/edupejc/node_modules/edupage-api/src/Edupage.js:467:36)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async educal (/home/runner/edupejc/index.js:43:24)