Skip to content
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

I installed it with docker, but it ran wrong. #15

Open
Sc-glong opened this issue Jun 5, 2023 · 0 comments
Open

I installed it with docker, but it ran wrong. #15

Sc-glong opened this issue Jun 5, 2023 · 0 comments

Comments

@Sc-glong
Copy link

Sc-glong commented Jun 5, 2023

This is the wrong details:

INFO:     :35837 - "POST /crawler_url HTTP/1.1" 500 Internal Server Error
chatweb-chatweb-1  | ERROR:    Exception in ASGI application
chatweb-chatweb-1  | Traceback (most recent call last):
chatweb-chatweb-1  |   File "/usr/local/lib/python3.9/site-packages/uvicorn/protocols/http/httptools_impl.py", line 435, in run_asgi
chatweb-chatweb-1  |     result = await app(  # type: ignore[func-returns-value]
chatweb-chatweb-1  |   File "/usr/local/lib/python3.9/site-packages/uvicorn/middleware/proxy_headers.py", line 78, in __call__
chatweb-chatweb-1  |     return await self.app(scope, receive, send)
chatweb-chatweb-1  |   File "/usr/local/lib/python3.9/site-packages/fastapi/applications.py", line 276, in __call__
chatweb-chatweb-1  |     await super().__call__(scope, receive, send)
chatweb-chatweb-1  |   File "/usr/local/lib/python3.9/site-packages/starlette/applications.py", line 122, in __call__
chatweb-chatweb-1  |     await self.middleware_stack(scope, receive, send)
chatweb-chatweb-1  |   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/errors.py", line 184, in __call__
chatweb-chatweb-1  |     raise exc
chatweb-chatweb-1  |   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/errors.py", line 162, in __call__
chatweb-chatweb-1  |     await self.app(scope, receive, _send)
chatweb-chatweb-1  |   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/exceptions.py", line 79, in __call__
chatweb-chatweb-1  |     raise exc
chatweb-chatweb-1  |   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/exceptions.py", line 68, in __call__
chatweb-chatweb-1  |     await self.app(scope, receive, sender)
chatweb-chatweb-1  |   File "/usr/local/lib/python3.9/site-packages/fastapi/middleware/asyncexitstack.py", line 21, in __call__
chatweb-chatweb-1  |     raise e
chatweb-chatweb-1  |   File "/usr/local/lib/python3.9/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
chatweb-chatweb-1  |     await self.app(scope, receive, send)
chatweb-chatweb-1  |   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 718, in __call__
chatweb-chatweb-1  |     await route.handle(scope, receive, send)
chatweb-chatweb-1  |   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 276, in handle
chatweb-chatweb-1  |     await self.app(scope, receive, send)
chatweb-chatweb-1  |   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 66, in app
chatweb-chatweb-1  |     response = await func(request)
chatweb-chatweb-1  |   File "/usr/local/lib/python3.9/site-packages/fastapi/routing.py", line 237, in app
chatweb-chatweb-1  |     raw_response = await run_endpoint_function(
chatweb-chatweb-1  |   File "/usr/local/lib/python3.9/site-packages/fastapi/routing.py", line 163, in run_endpoint_function
chatweb-chatweb-1  |     return await dependant.call(**values)
chatweb-chatweb-1  |   File "/app/api.py", line 34, in crawler_url
chatweb-chatweb-1  |     contents, lang = web_crawler_newspaper(req.url)
chatweb-chatweb-1  |   File "/app/contents.py", line 14, in web_crawler_newspaper
chatweb-chatweb-1  |     raw_html, lang = _get_raw_html(url)
chatweb-chatweb-1  |   File "/app/contents.py", line 35, in _get_raw_html
chatweb-chatweb-1  |     with webdriver.Chrome(options=chrome_options) as driver:
chatweb-chatweb-1  |   File "/usr/local/lib/python3.9/site-packages/selenium/webdriver/chrome/webdriver.py", line 84, in __init__
chatweb-chatweb-1  |     super().__init__(
chatweb-chatweb-1  |   File "/usr/local/lib/python3.9/site-packages/selenium/webdriver/chromium/webdriver.py", line 101, in __init__
chatweb-chatweb-1  |     self.service.start()
chatweb-chatweb-1  |   File "/usr/local/lib/python3.9/site-packages/selenium/webdriver/common/service.py", line 100, in start
chatweb-chatweb-1  |     self.assert_process_still_running()
chatweb-chatweb-1  |   File "/usr/local/lib/python3.9/site-packages/selenium/webdriver/common/service.py", line 113, in assert_process_still_running
chatweb-chatweb-1  |     raise WebDriverException(f"Service {self._path} unexpectedly exited. Status code was: {return_code}")
chatweb-chatweb-1  | selenium.common.exceptions.WebDriverException: Message: Service /root/.cache/selenium/chromedriver/linux64/114.0.5735.90/chromedriver unexpectedly exited. Status code was: 127
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant