13:59:02 web:1875] Uncaught exception GET /api/holidays?=*** (...) HTTPServerRequest(protocol='https', host='***', method='GET', uri='/api/holidays?=', version='HTTP/1.1', remote_ip='...***') Traceback (most recent call last): File "/var/local/condr/lib/python3.11/site-packages/tornado/web.py", line 1769, in _execute result = await result # type: ignore ^^^^^^^^^^^^ File "/var/local/condr/app/schedule/apihdr.py", line 1171, in prepare await userexch.exchange_current_user(self) File "/var/local/condr/app/schedule/userexch.py", line 536, in exchange_current_user if not handler.current_user: ^^^^^^^^^^^^^^^^^^^^ File "/var/local/condr/lib/python3.11/site-packages/tornado/web.py", line 1424, in current_user self._current_user = self.get_current_user() ^^^^^^^^^^^^^^^^^^^^^^^ File "/var/local/condr/app/schedule/auth.py", line 568, in get_current_user return get_current_user(self) ^^^^^^^^^^^^^^^^^^^^^^ File "/var/local/condr/app/schedule/auth.py", line 233, in get_current_user handler.redirect(handler.request.full_url()) File "/var/local/condr/lib/python3.11/site-packages/tornado/web.py", line 888, in redirect raise Exception("Cannot redirect after headers have been written") Exception: Cannot redirect after headers have been written /var/local/condr/app.log i-*** conne-app-g0 8053 [E 260307 13:59:02 web:1875] Uncaught exception GET /api/holidays?=*** (...) HTTPServerRequest(protocol='https', host='***', method='GET', uri='/api/holidays?=', version='HTTP/1.1', remote_ip='...***') Traceback (most recent call last): File "/var/local/condr/lib/python3.11/site-packages/tornado/web.py", line 1769, in _execute result = await result # type: ignore ^^^^^^^^^^^^ File "/var/local/condr/app/schedule/apihdr.py", line 1171, in prepare await userexch.exchange_current_user(self) File "/var/local/condr/app/schedule/userexch.py", line 536, in exchange_current_user if not handler.current_user: ^^^^^^^^^^^^^^^^^^^^ File "/var/local/condr/lib/python3.11/site-packages/tornado/web.py", line 1424, in current_user self._current_user = self.get_current_user() ^^^^^^^^^^^^^^^^^^^^^^^ File "/var/local/condr/app/schedule/auth.py", line 568, in get_current_user return get_current_user(self) ^^^^^^^^^^^^^^^^^^^^^^ File "/var/local/condr/app/schedule/auth.py", line 233, in get_current_user handler.redirect(handler.request.full_url()) File "/var/local/condr/lib/python3.11/site-packages/tornado/web.py", line 888, in redirect raise Exception("Cannot redirect after headers have been written") Exception: Cannot redirect after headers have been written /var/local/condr/app.log i-*** conne-app-g0 8053 [E 260307 13:59:02 web:1875] Uncaught exception GET /api/holidays?=*** (...) HTTPServerRequest(protocol='https', host='***', method='GET', uri='/api/holidays?=', version='HTTP/1.1', remote_ip='...***') Traceback (most recent call last): File "/var/local/condr/lib/python3.11/site-packages/tornado/web.py", line 1769, in _execute result = await result # type: ignore ^^^^^^^^^^^^ File "/var/local/condr/app/schedule/apihdr.py", line 1171, in prepare await userexch.exchange_current_user(self) File "/var/local/condr/app/schedule/userexch.py", line 536, in exchange_current_user if not handler.current_user: ^^^^^^^^^^^^^^^^^^^^ File "/var/local/condr/lib/python3.11/site-packages/tornado/web.py", line 1424, in current_user self._current_user = self.get_current_user() ^^^^^^^^^^^^^^^^^^^^^^^ File "/var/local/condr/app/schedule/auth.py", line 568, in get_current_user return get_current_user(self) ^^^^^^^^^^^^^^^^^^^^^^ File "/var/local/condr/app/schedule/auth.py", line 233, in get_current_user handler.redirect(handler.request.full_url()) File "/var/local/condr/lib/python3.11/site-packages/tornado/web.py", line 888, in redirect raise Exception("Cannot redirect after headers have been written") Exception: Cannot redirect after headers have been written 直面した課題 「『無視していい(?)エラー』にエラーが埋もれる!」 by 開発チーム