apache / superset

Apache Superset is a Data Visualization and Data Exploration Platform
https://superset.apache.org/
Apache License 2.0
62.95k stars 13.92k forks source link

Deck.gl chart not visible in email report #31146

Open xavier-GitHub76 opened 15 hours ago

xavier-GitHub76 commented 15 hours ago

Bug description

I have a dashboard with charts. email report is OK but not with Deck.gl chart.

image

An issue was already created for ol superet version : https://github.com/apache/superset/issues/22994

I have this issue with superset 4.0.2

Best regards

Screenshots/recordings

No response

Superset version

master / latest-dev

Python version

3.9

Node version

16

Browser

Chrome

Additional context

No response

Checklist

dosubot[bot] commented 15 hours ago

I found a similar closed issue regarding bar charts not rendering properly in dashboard emails, but no solution was found in the comments. You can view the issue here [1].

For troubleshooting issues with chart rendering in Superset email reports, you can follow these steps:

  1. Confirm Feature Flag and Permissions: Ensure the ALERT_REPORTS feature flag is enabled in your configuration file. Verify that your configuration file is being loaded correctly by enabling another feature flag and checking its effect. Log in as an admin user to ensure you have adequate permissions.

  2. Check Celery Worker Logs: Examine the logs of your Celery worker for any errors or issues. In a Docker Compose deployment, use a command like docker logs superset_worker --since 1h to view recent logs.

  3. Verify Web Browser and WebDriver Installation: Ensure that the headless browser (Firefox or Chrome) and the corresponding WebDriver are correctly installed and configured. If you can send a chart as CSV or text but not as PNG, the issue might be with the browser setup. Test the installation by running firefox --headless and geckodriver in the Superset worker environment.

  4. Send a Test Email: Test your email configuration by sending a test email. Use the following Python script to verify the SMTP settings:

    import smtplib
    from email.mime.multipart import MIMEMultipart
    from email.mime.text import MIMEText
    
    from_email = 'superset_emails@example.com'
    to_email = 'your_email@example.com'
    msg = MIMEMultipart()
    msg['From'] = from_email
    msg['To'] = to_email
    msg['Subject'] = 'Superset SMTP config test'
    message = 'It worked'
    msg.attach(MIMEText(message))
    mailserver = smtplib.SMTP('smtpmail.example.com', 25)
    mailserver.sendmail(from_email, to_email, msg.as_string())
    mailserver.quit()

    Ensure that the SMTP server is accessible and not blocked by any network restrictions.

  5. Check Worker Access to Reports: Verify that the worker can access the report URL specified by WEBDRIVER_BASEURL. Ensure the URL is correct and that the worker can authenticate if necessary [2].

To continue talking to Dosu, mention @dosu.