-
Notifications
You must be signed in to change notification settings - Fork 3
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
Improve handling of non-existent / expired domains #1
Conversation
Function generated errors when trying to work with dates that were not there. Improved the handling of missing dates.
@jonwbstr thanks for submitting this! Do you have an example of a domain which did not return expiration dates? I just want to confirm the problem and verify the fix before merging in your changes. |
An example of a domain that doesn't exist? How about NoExisty.com
…On Mon, Mar 18, 2024, 6:02 PM Robert Biddle ***@***.***> wrote:
@jonwbstr <https://github.com/jonwbstr> thanks for submitting this! Do
you have an example of a domain which did not return expiration dates? I
just want to confirm the problem and verify the fix before merging in your
changes.
—
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADXTPAARWUQ54VAOIOLG5CTYY5P75AVCNFSM6AAAAABDJC37YSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMBVGEZDGOJXGM>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Was a non-existing domain the problem you ran into? If it's only the former, I'm trying to decide what would be the best way to handle that case, eliminate the errors as you've proposed with your fix, which will return an object with no dates, or specifically throw either an error or warning stating something like "No whois information found for Domain xyz.tld"
|
@jonwbstr I'll likely merge in your changes regardless since it fixes a problem, but curious about your preference in output when a domain doesn't exist. |
The function generated errors when trying to work with dates that were not there. Improved the handling of missing dates.