airflow - 尝试在 Airflow 上使用 SendGrid 时出现错误 400(Google Composer)

标签 airflow sendgrid

我实际上正在尝试使用 Data Composer 在 Airflow 上的 DAG 中设置电子邮件通知。要发送电子邮件,我使用的是 Sendgrid 电子邮件服务器。

我正在遵循本指南:https://cloud.google.com/composer/docs/how-to/managing/creating#notification .

我遵循了所有步骤,但是当我启动我的 dag 时,我在日志中看到了这一点:

{sendgrid.py:121} WARNING - Failed to send out email with subject Airflow Alert Success, error: HTTP Error 400: Bad Request

有什么问题?它可以在我的环境设置中吗?

最佳答案

我遇到了完全相同的问题,解决它的方法(至少对我而言!)是在设置 SENDGRID_MAIL_FROM 时添加域。

所以不是“noreply-composer@”。我添加了我的域:“noreply-composer@verily.com”。

关于airflow - 尝试在 Airflow 上使用 SendGrid 时出现错误 400(Google Composer),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63189120/

相关文章:

airflow - Airflow中XCOM的最大内存大小

c# - SendGrid Parse API 和 SaaS 应用程序

php - 通过 sendgrid 发送的电子邮件未送达

node.js - NodeJS Sendgrid 向多个收件人发送电子邮件时出现问题

azure - 如何使用Logic App发送电子邮件?

python - Airflow :在位移运算符之前跳过行

Airflow : dag run with execution_date = trigger_date = fixed_schedule

python - Airflow : Passing a dynamic value to Sub DAG operator

python - 我们如何使用 BigQueryCreateEmptyTableOperator 创建包含 "Clustered by"列的表?

javascript - 部署到 Vercel 时,Sendgrid 电子邮件不会发送