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

Deck.gl chart not visible in email report #31146

Open
2 of 3 tasks
xavier-GitHub76 opened this issue Nov 25, 2024 · 1 comment
Open
2 of 3 tasks

Deck.gl chart not visible in email report #31146

xavier-GitHub76 opened this issue Nov 25, 2024 · 1 comment
Labels
alert-reports Namespace | Anything related to the Alert & Reports feature viz:charts:deck.gl Related to deck.gl charts

Comments

@xavier-GitHub76
Copy link
Contributor

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 : #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

  • I have searched Superset docs and Slack and didn't find a solution to my problem.
  • I have searched the GitHub issue tracker and didn't find a similar bug report.
  • I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section.
@dosubot dosubot bot added alert-reports Namespace | Anything related to the Alert & Reports feature viz:charts:deck.gl Related to deck.gl charts labels Nov 25, 2024
Copy link

dosubot bot commented Nov 25, 2024

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 = '[email protected]'
    to_email = '[email protected]'
    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
alert-reports Namespace | Anything related to the Alert & Reports feature viz:charts:deck.gl Related to deck.gl charts
Projects
None yet
Development

No branches or pull requests

1 participant