Upgrade to Pro — share decks privately, control downloads, hide ads and more …

ちとせゆるい勉強会.pdf

knot
October 16, 2022

 ちとせゆるい勉強会.pdf

knot

October 16, 2022
Tweet

More Decks by knot

Other Decks in Programming

Transcript

  1. エラーログを見る 2022-09-04T13:32:00.366557+00:00 heroku[router]: at=info method=POST path="/api/v1/get/csv/" host=timetable-backend-kn.herokuapp.com request_id=755e98ca-1465-4722-a19f-54cbce0d778f fwd="220.150.172.73" dyno=web.1

    connect=0ms service=5865ms status=500 bytes=193 protocol=https 2022-09-04T13:32:00.366166+00:00 app[web.1]: 220.150.172.73:0 - "POST /api/v1/get/csv/ HTTP/1.1" 500 2022-09-04T13:32:00.368886+00:00 app[web.1]: [2022-09-04 13:32:00 +0000] [26] [ERROR] Exception in ASGI application 2022-09-04T13:32:00.368886+00:00 app[web.1]: Traceback (most recent call last): 2022-09-04T13:32:00.368887+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.10/site-packages/uvicorn/protocols/http/h11_impl.py", line 403, in run_asgi 2022-09-04T13:32:00.368888+00:00 app[web.1]: result = await app(self.scope, self.receive, self.send) 2022-09-04T13:32:00.368888+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py", line 78, in __call__ 2022-09-04T13:32:00.368888+00:00 app[web.1]: return await self.app(scope, receive, send) 2022-09-04T13:32:00.368889+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.10/site-packages/fastapi/applications.py", line 269, in __call__ 2022-09-04T13:32:00.368889+00:00 app[web.1]: await super().__call__(scope, receive, send) 2022-09-04T13:32:00.368889+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.10/site-packages/starlette/applications.py", line 124, in __call__ 2022-09-04T13:32:00.368890+00:00 app[web.1]: await self.middleware_stack(scope, receive, send) 2022-09-04T13:32:00.368890+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.10/site-packages/starlette/middleware/errors.py", line 184, in __call__ 2022-09-04T13:32:00.368890+00:00 app[web.1]: raise exc 2022-09-04T13:32:00.368891+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.10/site-packages/starlette/middleware/errors.py", line 162, in __call__ 2022-09-04T13:32:00.368891+00:00 app[web.1]: await self.app(scope, receive, _send) 2022-09-04T13:32:00.368891+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.10/site-packages/starlette/exceptions.py", line 93, in __call__ 2022-09-04T13:32:00.368892+00:00 app[web.1]: raise exc 2022-09-04T13:32:00.368892+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.10/site-packages/starlette/exceptions.py", line 82, in __call__ 2022-09-04T13:32:00.368892+00:00 app[web.1]: await self.app(scope, receive, sender) 2022-09-04T13:32:00.368892+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.10/site-packages/fastapi/middleware/asyncexitstack.py", line 21, in __call__ 2022-09-04T13:32:00.368893+00:00 app[web.1]: raise e 2022-09-04T13:32:00.368893+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.10/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__ 2022-09-04T13:32:00.368893+00:00 app[web.1]: await self.app(scope, receive, send) 2022-09-04T13:32:00.368893+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.10/site-packages/starlette/routing.py", line 670, in __call__ 2022-09-04T13:32:00.368893+00:00 app[web.1]: await route.handle(scope, receive, send) 2022-09-04T13:32:00.368893+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.10/site-packages/starlette/routing.py", line 266, in handle 2022-09-04T13:32:00.368894+00:00 app[web.1]: await self.app(scope, receive, send) 2022-09-04T13:32:00.368894+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.10/site-packages/starlette/routing.py", line 65, in app 2022-09-04T13:32:00.368894+00:00 app[web.1]: response = await func(request) 2022-09-04T13:32:00.368895+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.10/site-packages/fastapi/routing.py", line 227, in app 2022-09-04T13:32:00.368895+00:00 app[web.1]: raw_response = await run_endpoint_function( 2022-09-04T13:32:00.368895+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.10/site-packages/fastapi/routing.py", line 160, in run_endpoint_function 2022-09-04T13:32:00.368895+00:00 app[web.1]: return await dependant.call(**values) 2022-09-04T13:32:00.368896+00:00 app[web.1]: File "/app/main.py", line 48, in timetable
  2. エラーログを見る 2022-09-04T13:32:00.368896+00:00 app[web.1]: File "/app/getPdf.py", line 38, in getPdf 2022-09-04T13:32:00.368896+00:00

    app[web.1]: driver.get("https://www.chitose.ac.jp/info/access") 2022-09-04T13:32:00.368896+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 442, in get 2022-09-04T13:32:00.368897+00:00 app[web.1]: self.execute(Command.GET, {'url': url}) 2022-09-04T13:32:00.368897+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 430, in execute 2022-09-04T13:32:00.368897+00:00 app[web.1]: self.error_handler.check_response(response) 2022-09-04T13:32:00.368897+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.10/site-packages/selenium/webdriver/remote/errorhandler.py", line 247, in check_response 2022-09-04T13:32:00.368898+00:00 app[web.1]: raise exception_class(message, screen, stacktrace) 2022-09-04T13:32:00.368898+00:00 app[web.1]: selenium.common.exceptions.WebDriverException: Message: unknown error: session deleted because of page crash 2022-09-04T13:32:00.368898+00:00 app[web.1]: from tab crashed 2022-09-04T13:32:00.368898+00:00 app[web.1]: (Session info: headless chrome=105.0.5195.102) 2022-09-04T13:32:00.368899+00:00 app[web.1]: Stacktrace: 2022-09-04T13:32:00.368899+00:00 app[web.1]: #0 0x55fd41b40693 <unknown> 2022-09-04T13:32:00.368899+00:00 app[web.1]: #1 0x55fd419399db <unknown> 2022-09-04T13:32:00.368899+00:00 app[web.1]: #2 0x55fd41927617 <unknown> 2022-09-04T13:32:00.368899+00:00 app[web.1]: #3 0x55fd41926f8f <unknown> 2022-09-04T13:32:00.368900+00:00 app[web.1]: #4 0x55fd41926389 <unknown> 2022-09-04T13:32:00.368900+00:00 app[web.1]: #5 0x55fd419259c4 <unknown> 2022-09-04T13:32:00.368900+00:00 app[web.1]: #6 0x55fd41940fe3 <unknown> 2022-09-04T13:32:00.368900+00:00 app[web.1]: #7 0x55fd419a3900 <unknown> 2022-09-04T13:32:00.368900+00:00 app[web.1]: #8 0x55fd4198f743 <unknown> 2022-09-04T13:32:00.368900+00:00 app[web.1]: #9 0x55fd41965533 <unknown> 2022-09-04T13:32:00.368901+00:00 app[web.1]: #10 0x55fd41966715 <unknown> 2022-09-04T13:32:00.368901+00:00 app[web.1]: #11 0x55fd41b907bd <unknown> 2022-09-04T13:32:00.368901+00:00 app[web.1]: #12 0x55fd41b93bf9 <unknown> 2022-09-04T13:32:00.368901+00:00 app[web.1]: #13 0x55fd41b75f2e <unknown> 2022-09-04T13:32:00.368901+00:00 app[web.1]: #14 0x55fd41b949b3 <unknown> 2022-09-04T13:32:00.368901+00:00 app[web.1]: #15 0x55fd41b69e4f <unknown> 2022-09-04T13:32:00.368901+00:00 app[web.1]: #16 0x55fd41bb3ea8 <unknown> 2022-09-04T13:32:00.368902+00:00 app[web.1]: #17 0x55fd41bb4052 <unknown> 2022-09-04T13:32:00.368902+00:00 app[web.1]: #18 0x55fd41bce71f <unknown> 2022-09-04T13:32:00.368902+00:00 app[web.1]: #19 0x7fb7dfabc609 <unknown> ウワー