Closed getorca closed 6 years ago
Is there any domain or input in particular that is causing this error for you?
I've run some composer updates on my end and none of my current tests can reproduces the issue.
This really seems like some sort of local issue TBH.
This exception is only thrown if your PHP can't access: https://publicsuffix.org/list/public_suffix_list.dat
If you can't open that URL in a browser then that's definitely a sign that this is more of a local issue. If it does work then take the test a step further and whip up a small test script where you try to this:
$domain = "yourdomain.com";
$host = new Host($domain)->getRegistrableDomain();
Based on some local testing I'm gonna close this issue.
It appears that for some reason when you attempted to use this library you were being blocked from loading that library from publicsuffix.org. If this is still an issue for you, I'm not really sure the cause - it may be due to local (i.e. your network, device, ISP, etc) network access issues?
If you can't open the dat list in your browser then that's a good sign this is the case.
An uncaught Exception was encountered Type: League\Uri\PublicSuffix\Exception
Message: Unable to load the public suffix list rules for https://publicsuffix.org/list/public_suffix_list.dat
Filename: /vendor/league/uri-hostname-parser/src/PublicSuffix/ICANNSectionManager.php
Line Number: 70
Backtrace:
File: /vendor/league/uri-components/src/Components/Host.php Line: 472 Function: getRules
File: /vendor/league/uri-components/src/Components/Host.php Line: 517 Function: lazyloadInfo
File: /vendor/mallardduck/whois-client/src/AbstractClient.php Line: 116 Function: getRegistrableDomain
File: /vendor/mallardduck/whois-client/src/AbstractClient.php Line: 135 Function: getSearchableHostname
File: /vendor/mallardduck/whois-client/src/Client.php Line: 37 Function: parseWhoisDomain