COMP1511 17s1 Internal Error Introduction to Programming
An internal error has occurred in the COMP1511 website.

If you think the URL you've used should work, please e-mail the text below to cs1511 and we'll fix it as soon as we can.

Internal error from https://cgi.cse.unsw.edu.au/~cs1511/17s1/flask.cgi/lec/arrays/code/reverse5return.c: 404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.

Traceback (most recent call last):
  File "/import/chopin/1/cs1511/public_html/17s1/lib/python/cse/class_webpages.py", line 189, in check_send_file
    return send_file(pathname, mimetype='text/plain')
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/flask/helpers.py", line 537, in send_file
    return werkzeug.utils.send_file(  # type: ignore[return-value]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/werkzeug/utils.py", line 440, in send_file
    stat = os.stat(path)
           ^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/import/chopin/1/cs1511/public_html/17s1/lec/arrays/code/reverse5return.c'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/flask/app.py", line 1820, in full_dispatch_request
    rv = self.dispatch_request()
         ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/flask/app.py", line 1796, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/import/chopin/1/cs1511/public_html/17s1/lib/python/cse/class_webpages.py", line 55, in view_func
    return f(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^
  File "/import/chopin/1/cs1511/public_html/17s1/lib/python/cse/class_webpages.py", line 138, in tlb_code_example_url
    return check_send_file(course_configuration['lecture_directory'], topic, 'code', filename)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/import/chopin/1/cs1511/public_html/17s1/lib/python/cse/class_webpages.py", line 193, in check_send_file
    abort(404)
  File "/usr/lib/python3/dist-packages/flask/helpers.py", line 310, in abort
    current_app.aborter(code, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/werkzeug/exceptions.py", line 864, in __call__
    raise self.mapping[code](*args, **kwargs)
werkzeug.exceptions.NotFound: 404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.