JoshData / JoshData/python-email-validator

Email deliverability check is failing with timeout

Open
#150 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
1.4k
Forks
140
PR merge metrics
No merged PRs in 30d

Description

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)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at validate_email and the validate_email_deliverability call shown in the report, using the two example addresses and the stated email_validator 2.2.0 dependency to reproduce the timeout. Trace how the DNS resolver and timeout are handled, then verify that valid and invalid domains no longer both produce unknown-deliverability: timeout.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
networking
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.