educative-viewer icon indicating copy to clipboard operation
educative-viewer copied to clipboard

500 Internal Server Error

Open Diez15 opened this issue 1 year ago • 15 comments

When using the latest release of educative-viewer or when cloning the latest version and running the python script manually, I get the following error:

The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.

The server correctly lists all the items, but clicking on any of them I get the above error. The python trace is:

SNIP  - - [27/Jun/2023 13:12:59] "POST / HTTP/1.1" 302 -
[27/Jun/2023 13:12:59] "POST / HTTP/1.1" 302 -
[2023-06-27 13:12:59,982] ERROR in app: Exception on /145-replace [GET]
Traceback (most recent call last):
  File "SNIP\eenv2\lib\site-packages\flask\app.py", line 2073, in wsgi_app
    response = self.full_dispatch_request()
  File "SNIP\eenv2\lib\site-packages\flask\app.py", line 1518, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "SNIP\eenv2\lib\site-packages\flask\app.py", line 1516, in full_dispatch_request
    rv = self.dispatch_request()
  File "SNIP\eenv2\lib\site-packages\flask\app.py", line 1502, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
  File "SNIP\educative-viewer\educative-viewer.py", line 131, in topics
    rendered_html = render_template(
  File "SNIP\eenv2\lib\site-packages\flask\templating.py", line 147, in render_template
    return _render(
  File "SNIP\eenv2\lib\site-packages\flask\templating.py", line 128, in _render
    rv = template.render(context)
  File "SNIP\eenv2\lib\site-packages\jinja2\environment.py", line 1291, in render
    self.environment.handle_exception()
  File "SNIP\eenv2\lib\site-packages\jinja2\environment.py", line 925, in handle_exception
    raise rewrite_traceback_stack(source=source)
  File "SNIP\educative-viewer\templates\topics.html", line 35, in top-level template code
    [([(=  include webpage =)])]
  File "SNIP\eenv2\lib\site-packages\jinja2\environment.py", line 925, in handle_exception
    raise rewrite_traceback_stack(source=source)
  File "<unknown>", line 5, in template
jinja2.exceptions.TemplateSyntaxError: Missing end of comment tag
SNIP - - [27/Jun/2023 13:12:59] "GET /145-replace HTTP/1.1" 500 -
[2023-06-27 13:13:00,292] ERROR in app: Exception on /favicon.ico [GET]
Traceback (most recent call last):
  File "SNIP\eenv2\lib\site-packages\flask\app.py", line 2073, in wsgi_app
    response = self.full_dispatch_request()
  File "SNIP\eenv2\lib\site-packages\flask\app.py", line 1518, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "SNIP\eenv2\lib\site-packages\flask\app.py", line 1516, in full_dispatch_request
    rv = self.dispatch_request()
  File "SNIP\eenv2\lib\site-packages\flask\app.py", line 1502, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
  File "SNIP\educative-viewer\educative-viewer.py", line 131, in topics
    rendered_html = render_template(
  File "SNIP\eenv2\lib\site-packages\flask\templating.py", line 147, in render_template
    return _render(
  File "SNIP\eenv2\lib\site-packages\flask\templating.py", line 128, in _render
    rv = template.render(context)
  File "SNIP\eenv2\lib\site-packages\jinja2\environment.py", line 1291, in render
    self.environment.handle_exception()
  File "SNIP\eenv2\lib\site-packages\jinja2\environment.py", line 925, in handle_exception
    raise rewrite_traceback_stack(source=source)
  File "SNIP\educative-viewer\templates\topics.html", line 35, in top-level template code
    [([(=  include webpage =)])]
  File "SNIP\eenv2\lib\site-packages\jinja2\environment.py", line 925, in handle_exception
    raise rewrite_traceback_stack(source=source)
  File "<unknown>", line 5, in template
jinja2.exceptions.TemplateSyntaxError: Missing end of comment tag
SNIP - - [27/Jun/2023 13:13:00] "GET /favicon.ico HTTP/1.1" 500 -

I see that a similar issue was raised in the past and you marked it as fixed, but I am still getting the error. Can you provide any advice?

Diez15 avatar Jun 27 '23 10:06 Diez15