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

Failed to parse timetable data from html #12

Closed
0Charliecat opened this issue Jan 9, 2022 · 0 comments
Closed

Failed to parse timetable data from html #12

0Charliecat opened this issue Jan 9, 2022 · 0 comments

Comments

@0Charliecat
Copy link

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)
    
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

1 participant