You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2018/11/16 10:33:31 UTC

[GitHub] cloud26 commented on issue #5294: [SIP-3] Scheduled email reports for Slices / Dashboards

cloud26 commented on issue #5294: [SIP-3] Scheduled email reports for Slices / Dashboards
URL: https://github.com/apache/incubator-superset/pull/5294#issuecomment-439352089
 
 
   > @mahendra - Can you help me with the following issue that I am facing when i schedule a dashboard email:
   > 
   > [2018-09-18 17:02:04,499: ERROR/ForkPoolWorker-4] Task email_reports.send[e2fb2ff1-c80a-4cbe-9c97-5c7fa8f9dae1] raised unexpected: NoSuchElementException()
   > Traceback (most recent call last):
   > File "/Library/Python/2.7/site-packages/celery/app/trace.py", line 382, in trace_task
   > R = retval = fun(*args, **kwargs)
   > File "/Library/Python/2.7/site-packages/celery/app/trace.py", line 641, in **protected_call**
   > return self.run(*args, **kwargs)
   > File "superset/tasks/schedules.py", line 382, in schedule_email_report
   > deliver_dashboard(schedule)
   > File "superset/tasks/schedules.py", line 221, in deliver_dashboard
   > delay=PAGE_RENDER_WAIT,
   > File "/Library/Python/2.7/site-packages/retry/api.py", line 101, in retry_call
   > return __retry_internal(partial(f, *args, **kwargs), exceptions, tries, delay, max_delay, backoff, jitter, logger)
   > File "/Library/Python/2.7/site-packages/retry/api.py", line 33, in __retry_internal
   > return f()
   > File "/Library/Python/2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 563, in find_element_by_class_name
   > return self.find_element(by=By.CLASS_NAME, value=name)
   > File "/Library/Python/2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 966, in find_element
   > 'value': value})['value']
   > File "/Library/Python/2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 320, in execute
   > self.error_handler.check_response(response)
   > File "/Library/Python/2.7/site-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
   > raise exception_class(message, screen, stacktrace)
   > NoSuchElementException: Message: no such element: Unable to locate element: {"method":"class name","selector":"grid-container"}
   
   
   @akshayjamwal07 I came across this problem too. The default WEBDRIVER_BASEURL is http://0.0.0.0:8088/, which is the backend server address. Because the backend doesn't render the graph, so it is unable to locate the dashboard or chart.
   
   In my case, change WEBDRIVER_BASEURL to http://127.0.0.1:9000 will solve this problem. 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org