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

Connection unexpectedly closed: timed out #2

Open
tuankg1028 opened this issue Apr 20, 2024 · 2 comments
Open

Connection unexpectedly closed: timed out #2

tuankg1028 opened this issue Apr 20, 2024 · 2 comments
Assignees

Comments

@tuankg1028
Copy link

Hello,
I got an error when running following code on Colab:

from mailscout import Scout
scout = Scout()

names = ["Batuhan", "Akyazı"]
# or, names = ["Batuhan Akyazı"]
domain = "microsoft.com"

emails = scout.find_valid_emails(domain, names)

print(emails)

Screenshot on Colab
image

@fedster99
Copy link

Having the same issue

@batuhanaky
Copy link
Owner

Hey,

Sorry to hear you are having problems with mailscout.

When I check the code on my own Colab, I face no issues. As expected, it returns an empty list (as Batuhan Akyazı does not have a microsoft.com account), however, it checks the emails successfully. I can also get a full list with legit domain + name combinations.

Since I can't replicate the issue, I can only guess the reason behind it.

One reason might be that the Colab instance you use has been IP-banned by the mail server. Using a different instance may help in this case (by simply using the Disconnect and Delete Runtime button). Mailscout is also prone to getting your IP banned if used in high concurrency (simply because it means spamming the server), but I believe that's not your case.

I would also suspect the port 25 on the instance you use. But I suppose it would give you a specific error if that was your case. I use Colab Pro so my instances may allow me to use the mentioned port, while Colab Free may block it by default.

Again, these are just my assumptions as I am unable to replicate the issue.

If you have found more evidence to elaborate on, I would be more than welcome to provide further support :)

@batuhanaky batuhanaky self-assigned this Apr 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants