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

Configure alerts and select 'email keeps spinning' #31616

Open
3 tasks
small-flowers opened this issue Dec 25, 2024 · 4 comments
Open
3 tasks

Configure alerts and select 'email keeps spinning' #31616

small-flowers opened this issue Dec 25, 2024 · 4 comments
Labels
alert-reports Namespace | Anything related to the Alert & Reports feature

Comments

@small-flowers
Copy link

Bug description

Configure alerts and select 'email keeps spinning'

Screenshots/recordings

image

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 the alert-reports Namespace | Anything related to the Alert & Reports feature label Dec 25, 2024
Copy link

dosubot bot commented Dec 25, 2024

I found a similar unsolved discussion regarding an issue with the "Add Alert" form in Superset, which might be related to your problem. You can check it out here: Error in Add Alert form when upgrading to version 4.0.1 [1].

To address the "email keeps spinning" issue when configuring alerts in the latest-dev version of Superset using Chrome, ensure the following configurations are correctly set in your superset_config.py:

  1. Enable the Feature Flag: Make sure the ALERT_REPORTS feature flag is set to True.

    FEATURE_FLAGS = {
        "ALERT_REPORTS": True
    }
  2. Configure SMTP Settings: Ensure your SMTP settings are correctly configured for email notifications.

    SMTP_HOST = 'your_smtp_host'
    SMTP_STARTTLS = True
    SMTP_SSL = False
    SMTP_USER = 'your_smtp_user'
    SMTP_PORT = 587
    SMTP_PASSWORD = 'your_smtp_password'
    SMTP_MAIL_FROM = '[email protected]'
  3. Disable Dry-Run Mode: Set ALERT_REPORTS_NOTIFICATION_DRY_RUN to False to start receiving email notifications.

    ALERT_REPORTS_NOTIFICATION_DRY_RUN = False

These configurations should help resolve the issue with the email notification feature in Superset [2].

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other

@small-flowers
Copy link
Author

我找到了一个类似的未解决的讨论,关于 Superset 中“添加警报”表单的问题,这可能与您的问题有关。您可以在这里查看:升级到 4.0.1 版时添加警报表单出错 [1]

要解决使用 Chrome 在 Superset 的最新开发版本中配置警报时出现“电子邮件不断旋转”的问题,请确保在您的中正确设置以下配置superset_config.py

  1. 启用功能标志:确保ALERT_REPORTS功能标志设置为True
    FEATURE_FLAGS = {
        "ALERT_REPORTS": True
    }
  2. 配置 SMTP 设置:确保您的 SMTP 设置已正确配置以用于电子邮件通知。
    SMTP_HOST = 'your_smtp_host'
    SMTP_STARTTLS = True
    SMTP_SSL = False
    SMTP_USER = 'your_smtp_user'
    SMTP_PORT = 587
    SMTP_PASSWORD = 'your_smtp_password'
    SMTP_MAIL_FROM = '[email protected]'
  3. 禁用试运行模式:设置ALERT_REPORTS_NOTIFICATION_DRY_RUNFalse开始接收电子邮件通知。
    ALERT_REPORTS_NOTIFICATION_DRY_RUN = False

这些配置应该有助于解决 Superset [2]中的电子邮件通知功能的问题。

要继续与Dosu交谈,请提及@dosu

帮助 Dosu 学习!给它反馈:很好的回应|不相关的答案|不正确的来源|太冗长|幻觉|其他

@small-flowers
Copy link
Author

I added email related configurations to the configuration file superset_config.py, but when setting alerts, setting the email address is still loading and prompts for invalid emails
image
image
@dosu

Copy link

dosubot bot commented Dec 26, 2024

The issue you're encountering with the "email keeps spinning" and "invalid email" prompts in Superset's alert configuration might be related to the email validation rules. Superset uses a function called checkEmailFormat to validate email addresses. This function checks if the email addresses in the recipients, cc, and bcc fields are correctly formatted according to a regular expression [1].

Here are a few steps to troubleshoot and resolve the issue:

  1. Check Email Format: Ensure that all email addresses entered in the alert configuration are correctly formatted. They should not contain any spaces or invalid characters and should be separated by commas or semicolons if there are multiple addresses.

  2. Review Validation Logic: The validation logic in Superset might be strict, so double-check that the email addresses conform to standard formats (e.g., [email protected]).

  3. Inspect Console for Errors: Use the browser's developer tools to check for any JavaScript errors in the console that might provide more insight into why the email validation is failing.

  4. Review Superset Logs: Check the Superset logs for any error messages related to email validation or configuration issues.

If these steps do not resolve the issue, you might need to review the specific implementation of the checkEmailFormat function in your Superset version to ensure it aligns with the expected email formats.

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other

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
Projects
None yet
Development

No branches or pull requests

1 participant