I was able to submit 6 traits and on the 7th one I received the error code below.
GeneNetwork tux01:gene:2.11-rc2
'user' is undefined (error)
This is the full stack trace if this information is helpful.
GeneNetwork tux01:gene:2.11-rc2 http://genenetwork.org/show_temp_trait ( 8:31PM UTC Jul 24, 2023)
Traceback (most recent call last):
File "/home/zas1024/opt/gn-latest-20230421/lib/python3.9/site-packages/flask/app.py", line 1523, in full_dispatch_request
rv = self.dispatch_request()
File "/home/zas1024/opt/gn-latest-20230421/lib/python3.9/site-packages/flask/app.py", line 1509, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(req.view_args)
File "/home/gn2/production/gene/wqflask/wqflask/views.py", line 494, in show_temp_trait_page
return render_template("show_trait.html", template_vars.dict)
File "/home/zas1024/opt/gn-latest-20230421/lib/python3.9/site-packages/flask/templating.py", line 148, in render_template
return _render(
File "/home/zas1024/opt/gn-latest-20230421/lib/python3.9/site-packages/flask/templating.py", line 128, in _render
rv = template.render(context)
File "/home/zas1024/opt/gn-latest-20230421/lib/python3.9/site-packages/jinja2/environment.py", line 1291, in render
self.environment.handle_exception()
File "/home/zas1024/opt/gn-latest-20230421/lib/python3.9/site-packages/jinja2/environment.py", line 926, in handle_exception
raise rewrite_traceback_stack(source=source)
File "/home/gn2/production/gene/wqflask/wqflask/templates/show_trait.html", line 2, in top-level template code
{%from "oauth2/display_error.html" import display_error%}
File "/home/gn2/production/gene/wqflask/wqflask/templates/base.html", line 243, in top-level template code
{% block content %}
File "/home/gn2/production/gene/wqflask/wqflask/templates/show_trait.html", line 129, in block 'content'
{%if user.name == "Anonymous User"%}
File "/home/zas1024/opt/gn-latest-20230421/lib/python3.9/site-packages/jinja2/environment.py", line 475, in getattr
return getattr(obj, attribute)
jinja2.exceptions.UndefinedError: 'user' is undefined
I was able to submit 6 traits and on the 7th one I received the error code below.
GeneNetwork tux01:gene:2.11-rc2 'user' is undefined (error)
This is the full stack trace if this information is helpful.
Traceback (most recent call last): File "/home/zas1024/opt/gn-latest-20230421/lib/python3.9/site-packages/flask/app.py", line 1523, in full_dispatch_request rv = self.dispatch_request() File "/home/zas1024/opt/gn-latest-20230421/lib/python3.9/site-packages/flask/app.py", line 1509, in dispatch_request return self.ensure_sync(self.view_functions[rule.endpoint])(req.view_args) File "/home/gn2/production/gene/wqflask/wqflask/views.py", line 494, in show_temp_trait_page return render_template("show_trait.html", template_vars.dict) File "/home/zas1024/opt/gn-latest-20230421/lib/python3.9/site-packages/flask/templating.py", line 148, in render_template return _render( File "/home/zas1024/opt/gn-latest-20230421/lib/python3.9/site-packages/flask/templating.py", line 128, in _render rv = template.render(context) File "/home/zas1024/opt/gn-latest-20230421/lib/python3.9/site-packages/jinja2/environment.py", line 1291, in render self.environment.handle_exception() File "/home/zas1024/opt/gn-latest-20230421/lib/python3.9/site-packages/jinja2/environment.py", line 926, in handle_exception raise rewrite_traceback_stack(source=source) File "/home/gn2/production/gene/wqflask/wqflask/templates/show_trait.html", line 2, in top-level template code {%from "oauth2/display_error.html" import display_error%} File "/home/gn2/production/gene/wqflask/wqflask/templates/base.html", line 243, in top-level template code {% block content %} File "/home/gn2/production/gene/wqflask/wqflask/templates/show_trait.html", line 129, in block 'content' {%if user.name == "Anonymous User"%} File "/home/zas1024/opt/gn-latest-20230421/lib/python3.9/site-packages/jinja2/environment.py", line 475, in getattr return getattr(obj, attribute) jinja2.exceptions.UndefinedError: 'user' is undefined