Skip to content

NotFoundError caused by timetable.get_current() #29

Description

@ex0r5-nyjc

Problem:
The timetable.get_current() method returns a NotFound Error.

Code used:

campus = Campus(timeout=30, mode="server")
curr = campus.api.timetable.get_current()

Result:

Traceback (most recent call last):
  File "/workspaces/nyxchange-timetable-v2/temptest.py", line 6, in <module>
    curr = campus.api.timetable.get_current()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/vscode/.cache/pypoetry/virtualenvs/nyxchange-timetable-v2-OC8lztqH-py3.11/lib/python3.11/site-packages/campus_python/api/v1/timetable.py", line 64, in get_current
    resp.raise_for_status()
  File "/home/vscode/.cache/pypoetry/virtualenvs/nyxchange-timetable-v2-OC8lztqH-py3.11/lib/python3.11/site-packages/campus_python/json_client/interface.py", line 104, in raise_for_status
    raise error from None
campus_python.errors.NotFoundError: Timetable not found

Activity

  1. changed the title [-]NotFound Error caused by timetable.get_current()[/-] [+]NotFoundError caused by timetable.get_current()[/+] on May 4, 2026
  2. ngjunsiang commented on May 15, 2026

    @ngjunsiang
    Contributor

    Fixed by #33 (commit c8f36d9). The and methods now use , which prevents the trailing slash that was causing API errors with servers using .

    Closing this issue - please reopen if the problem persists after testing with the updated version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions