onopon / spotto_league

SPOTTOのリーグ戦システム
0 stars 0 forks source link

たまに出るエラー #16

Closed onopon closed 3 years ago

onopon commented 3 years ago

login_userのセッションがなぜか切れる?

2021-04-23T07:21:07.311227+00:00 app[web.1]: [2021-04-23 16:21:07,306] ERROR in app: Exception on /user/ranking/2021/ [GET]
2021-04-23T07:21:07.311239+00:00 app[web.1]: Traceback (most recent call last):
2021-04-23T07:21:07.311239+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/flask/app.py", line 1982, in wsgi_app
2021-04-23T07:21:07.311240+00:00 app[web.1]: response = self.full_dispatch_request()
2021-04-23T07:21:07.311243+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/flask/app.py", line 1614, in full_dispatch_request
2021-04-23T07:21:07.311243+00:00 app[web.1]: rv = self.handle_user_exception(e)
2021-04-23T07:21:07.311244+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/flask/app.py", line 1517, in handle_user_exception
2021-04-23T07:21:07.311244+00:00 app[web.1]: reraise(exc_type, exc_value, tb)
2021-04-23T07:21:07.311244+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/flask/_compat.py", line 33, in reraise
2021-04-23T07:21:07.311245+00:00 app[web.1]: raise value
2021-04-23T07:21:07.311245+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/flask/app.py", line 1612, in full_dispatch_request
2021-04-23T07:21:07.311246+00:00 app[web.1]: rv = self.dispatch_request()
2021-04-23T07:21:07.311246+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/flask/app.py", line 1598, in dispatch_request
2021-04-23T07:21:07.311247+00:00 app[web.1]: return self.view_functions[rule.endpoint](**req.view_args)
2021-04-23T07:21:07.311247+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/flask_httpauth.py", line 164, in decorated
2021-04-23T07:21:07.311248+00:00 app[web.1]: return f(*args, **kwargs)
2021-04-23T07:21:07.311248+00:00 app[web.1]: File "/app/application.py", line 164, in user_ranking
2021-04-23T07:21:07.311248+00:00 app[web.1]: return UserRankingController().render(request, year=year)
2021-04-23T07:21:07.311249+00:00 app[web.1]: File "/app/spotto_league/controllers/base_controller.py", line 44, in render
2021-04-23T07:21:07.311249+00:00 app[web.1]: return loop.run_until_complete(self.get_layout(request, **kwargs))
2021-04-23T07:21:07.311250+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
2021-04-23T07:21:07.311250+00:00 app[web.1]: return future.result()
2021-04-23T07:21:07.311251+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/asyncio/coroutines.py", line 124, in coro
2021-04-23T07:21:07.311251+00:00 app[web.1]: res = func(*args, **kw)
2021-04-23T07:21:07.311251+00:00 app[web.1]: File "/app/spotto_league/controllers/user/ranking_controller.py", line 29, in get_layout
2021-04-23T07:21:07.311252+00:00 app[web.1]: return self.render_template("user/ranking.html", year=year, point_ranks=point_ranks)
2021-04-23T07:21:07.311252+00:00 app[web.1]: File "/app/spotto_league/controllers/base_controller.py", line 58, in render_template
2021-04-23T07:21:07.311253+00:00 app[web.1]: return render_template(template_name_or_list, **context)
2021-04-23T07:21:07.311253+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/flask/templating.py", line 133, in render_template
2021-04-23T07:21:07.311254+00:00 app[web.1]: return _render(ctx.app.jinja_env.get_or_select_template(template_name_or_list),
2021-04-23T07:21:07.311254+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/flask/templating.py", line 116, in _render
2021-04-23T07:21:07.311255+00:00 app[web.1]: rv = template.render(context)
2021-04-23T07:21:07.311255+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/jinja2/asyncsupport.py", line 76, in render
2021-04-23T07:21:07.311255+00:00 app[web.1]: return original_render(self, *args, **kwargs)
2021-04-23T07:21:07.311256+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/jinja2/environment.py", line 1008, in render
2021-04-23T07:21:07.311256+00:00 app[web.1]: return self.environment.handle_exception(exc_info, True)
2021-04-23T07:21:07.311256+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/jinja2/environment.py", line 780, in handle_exception
2021-04-23T07:21:07.311257+00:00 app[web.1]: reraise(exc_type, exc_value, tb)
2021-04-23T07:21:07.311257+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/jinja2/_compat.py", line 37, in reraise
2021-04-23T07:21:07.311257+00:00 app[web.1]: raise value.with_traceback(tb)
2021-04-23T07:21:07.311258+00:00 app[web.1]: File "/app/templates/user/ranking.html", line 1, in <module>
2021-04-23T07:21:07.311258+00:00 app[web.1]: {% extends 'base.html' %}
2021-04-23T07:21:07.311259+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/jinja2/environment.py", line 1005, in render
2021-04-23T07:21:07.311259+00:00 app[web.1]: return concat(self.root_render_func(self.new_context(vars)))
2021-04-23T07:21:07.311260+00:00 app[web.1]: File "/app/templates/user/ranking.html", line 14, in root
2021-04-23T07:21:07.311260+00:00 app[web.1]: </div>
2021-04-23T07:21:07.311261+00:00 app[web.1]: File "/app/templates/base.html", line 21, in root
2021-04-23T07:21:07.311261+00:00 app[web.1]: </footer>
2021-04-23T07:21:07.311261+00:00 app[web.1]: File "/app/templates/user/ranking.html", line 73, in block_content
2021-04-23T07:21:07.311262+00:00 app[web.1]: {% include 'league/parts/after_session/modal_view_for_ranking.html' %}
2021-04-23T07:21:07.311262+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/jinja2/environment.py", line 430, in getattr
2021-04-23T07:21:07.311263+00:00 app[web.1]: return getattr(obj, attribute)
2021-04-23T07:21:07.311263+00:00 app[web.1]: jinja2.exceptions.UndefinedError: 'login_user' is undefined
2021-04-23T07:21:07.488612+00:00 app[web.1]: 10.41.182.161 - spotto [23/ 4月/2021:16:21:07 +0900] "GET /user/ranking/2021/ HTTP/1.1" 500 290 "https://ponno.herokuapp.com/user/info/onopon/" "Mozilla/5.0 (iPhone; CPU iPhone OS 14_4_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0.3 Mobile/15E148 Safari/604.1"
2021-04-23T07:21:07.491068+00:00 heroku[router]: at=info method=GET path="/user/ranking/2021/" host=ponno.herokuapp.com request_id=79ab6f1e-7e4c-42ae-8027-f51b230be606 fwd="126.182.3.239" dyno=web.1 connect=0ms service=2381ms status=500 bytes=456 protocol=https