JoshData / JoshData/python-email-validator

Email deliverability check is failing with timeout

オープン
#150 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
Python
スター
1.4k
フォーク
140
PR マージ指標
30日以内にマージされた PR はありません

説明

in validate_email, the result of the following deliverability check is always : {'unknown-deliverability': 'timeout'}

for this call:

 from .deliverability import validate_email_deliverability
 deliverability_info = validate_email_deliverability(
     ret.ascii_domain, ret.domain, timeout, dns_resolver
  )

and this is the case whatever the email

  • "testing_user_abcde@lizy.be" (the domain exists, the user doesn't)
  • "bogus2@majoxs.co" (neither should exist)

no idea how to solve this, tried adjusting the timeout to no avail.

lib is installed via pydantic (pydantic = {extras = ["email"], version = "==2.8.2"}) and the resolved email_validator version is 2.2.0 (latest at the time of this writing)

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

レポートに示されている validate_email と validate_email_deliverability の呼び出しから始め、2つの例示アドレスと記載されている email_validator 2.2.0 依存関係を使ってタイムアウトを再現します。DNS リゾルバーとタイムアウトがどのように処理されるかを追跡し、その後、有効なドメインと無効なドメインの両方が unknown-deliverability: timeout を生成することがなくなっていることを確認します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
python
領域
networking
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。