isandyawan commented on issue #15118:
URL: https://github.com/apache/superset/issues/15118#issuecomment-913485549
Thank you @Hvitgar for your solution, i have implement it, but when i access
screenshot url return 404 not found. Below is log from superset worker:
`superset_worker | [2021-09-06 09:08:54,659:
WARNING/ForkPoolWorker-1] Failed at generating thumbnail Message: Reached error
page:
about:neterror?e=dnsNotFound&u=http%3A//l27.0.0.1%3A8088/login/&c=UTF-8&d=We%20can%E2%80%99t%20connect%20to%20the%20server%20at%20l27.0.0.1.
superset_worker | Traceback (most recent call last):
superset_worker | File "/app/superset/utils/screenshots.py", line
152, in compute_and_cache
superset_worker | payload = self.get_screenshot(user=user,
window_size=window_size)
superset_worker | File "/app/superset/utils/screenshots.py", line
74, in get_screenshot
superset_worker | self.screenshot =
driver.get_screenshot(self.url, self.element, user)
superset_worker | File "/app/superset/utils/webdriver.py", line
112, in get_screenshot
superset_worker | driver = self.auth(user)
superset_worker | File "/app/superset/utils/webdriver.py", line
87, in auth
superset_worker | driver, user
superset_worker | File "/app/superset/utils/machine_auth.py",
line 53, in authenticate_webdriver
superset_worker | driver.get(headless_url("/login/"))
superset_worker | File
"/usr/local/lib/python3.7/site-packages/selenium/webdriver/remote/webdriver.py",
line 333, in get
superset_worker | self.execute(Command.GET, {'url': url})
superset_worker | File
"/usr/local/lib/python3.7/site-packages/selenium/webdriver/remote/webdriver.py",
line 321, in execute
superset_worker | self.error_handler.check_response(response)
superset_worker | File
"/usr/local/lib/python3.7/site-packages/selenium/webdriver/remote/errorhandler.py",
line 242, in check_response
superset_worker | raise exception_class(message, screen,
stacktrace)
superset_worker | selenium.common.exceptions.WebDriverException:
Message: Reached error page:
about:neterror?e=dnsNotFound&u=http%3A//l27.0.0.1%3A8088/login/&c=UTF-8&d=We%20can%E2%80%99t%20connect%20to%20the%20server%20at%20l27.0.0.1.
`
I also try to test webdriver from superset container and i got it :
`>>> webdriver Firefox ()
Traceback (most recent call last):
File "<stdin>", line 1, in module>
File
"/usr/local/lib/python3.7/site-packages/selenium/webdriver/firefox/webdriver.py",
line 174, in init File
"/usr/local/lib/python3.7/site-packages/selenium/webdriver/remote/webdriver.py",
line 157, in init
keep_alive=True)
self.start_session (capabilities, browser profile)
File
"/usr/local/lib/python3.7/site-packages/selenium/webdriver/remote/webdriver.py",
line 252, in start_session response = self.execute(Command.NEW SESSION,
parameters)
File
"/usr/local/lib/python3.7/site-packages/selenium/webdriver/remote/webdriver.py",
line 321, in execute
self.error handler.check_response (response) File
"/usr/local/lib/python3.7/site-packages/selenium/webdriver/remote/errorhandler.py",
line 242, in check_response
raise exception class (message, screen, stacktrace)
selenium.common.exceptions.TimeoutException: Message: Connection refused (os
error 111)`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]