Skip to content

Temporary 5xx when navigating to the tutor dashboard #86

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

Open
PatrickTrentin88 opened this issue May 3, 2025 · 1 comment · May be fixed by #89
Open

Temporary 5xx when navigating to the tutor dashboard #86

PatrickTrentin88 opened this issue May 3, 2025 · 1 comment · May be fixed by #89
Assignees
Labels
bug Something isn't working

Comments

@PatrickTrentin88
Copy link

Error:

  172.17.0.1 - - [03/May/2025 21:27:16] "GET / HTTP/1.1" 500 -
[2025-05-03 21:27:17,146] ERROR in app: Exception on / [GET]
Traceback (most recent call last):
File "/venv/lib/python3.9/site-packages/flask/app.py", line 1473, in wsgi_app
response = self.full_dispatch_request()
File "/venv/lib/python3.9/site-packages/flask/app.py", line 882, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/venv/lib/python3.9/site-packages/flask/app.py", line 880, in full_dispatch_request
rv = self.dispatch_request()
File "/venv/lib/python3.9/site-packages/flask/app.py", line 865, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)  # type: ignore[no-any-return]
File "/venv/lib/python3.9/site-packages/flask_login/utils.py", line 290, in decorated_view
return current_app.ensure_sync(func)(*args, **kwargs)
File "/src/app.py", line 94, in index
return render_template('index.html',uid = getUserName(), misconception_weights = misconception_weights, misconception_count = misconception_count, max_misconception = max_misconception)
File "/venv/lib/python3.9/site-packages/flask/templating.py", line 150, in render_template
return _render(app, template, context)
File "/venv/lib/python3.9/site-packages/flask/templating.py", line 131, in _render
rv = template.render(context)
File "/venv/lib/python3.9/site-packages/jinja2/environment.py", line 1295, in render
self.environment.handle_exception()
File "/venv/lib/python3.9/site-packages/jinja2/environment.py", line 942, in handle_exception
raise rewrite_traceback_stack(source=source)
File "/src/templates/index.html", line 38, in top-level template code
{% include max_misconception %}
File "/venv/lib/python3.9/site-packages/flask/templating.py", line 65, in get_source
return self._get_source_fast(environment, template)
File "/venv/lib/python3.9/site-packages/flask/templating.py", line 99, in _get_source_fast
raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: misconceptionexplainers/syntactic.html

System:

  • Fedora, x86
  • Using docker image, version 1.4.6

Steps to Reproduce:

  • At the end of an exercise, navigate to the tutor dashboard
  • The issue is intermittent, sometimes it works just fine
  • After getting the error, if one waits some time and then refreshes the page, the error will be gone
    • this may due to a computation taking too long?

In one session of testing this tool, I got the error 11 times.

@sidprasad sidprasad linked a pull request May 4, 2025 that will close this issue
@sidprasad sidprasad added the bug Something isn't working label May 4, 2025
@sidprasad sidprasad self-assigned this May 4, 2025
@sidprasad
Copy link
Contributor

In fact, timing seems to be a red herring here. The issue may have to do with JINJA inclusions of non-codebook misconceptions. Hard to say for certain due to intermittent failure -- associating a change that will certainly prevent the issue for the call stack above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants