kevinoo / phpWhois

phpWhois general repository
https://phpwhois.pw
GNU General Public License v2.0
10 stars 1 forks source link

rawdata may be missing from return #9

Open yespire opened 9 months ago

yespire commented 9 months ago

@kevinoo

Just noticed an exception triggered by whois "IP", here are a few IPs that triggered the following exception

Exception-Code: 2
Exception-Message: Undefined array key "rawdata"
File: vendor/kevinoo/phpwhois/src/Handlers/RwhoisHandler.php
Line: 42
Trace: `#0 vendor/kevinoo/phpwhois/src/Handlers/RwhoisHandler.php(42): Whoops\Run->handleError()
#1 vendor/kevinoo/phpwhois/src/WhoisClient.php(495): phpWhois\Handlers\RwhoisHandler->parse()
#2 vendor/kevinoo/phpwhois/src/Handlers/IpHandler.php(167): phpWhois\WhoisClient->process()
#3 vendor/kevinoo/phpwhois/src/Handlers/IpHandler.php(144): phpWhois\Handlers\IpHandler->parse_results()
#4 vendor/kevinoo/phpwhois/src/WhoisClient.php(495): phpWhois\Handlers\IpHandler->parse()
#5 vendor/kevinoo/phpwhois/src/WhoisClient.php(271): phpWhois\WhoisClient->process()
#6 vendor/kevinoo/phpwhois/src/Whois.php(134): phpWhois\WhoisClient->getData()
#7 vendor/kevinoo/phpwhois/src/Whois.php(76): phpWhois\Whois->lookup()
#8 vendor/main/app-lib/src/Lib/Stateful/Whois.php(255): phpWhois\Whois->whois()

image

kevinoo commented 9 months ago

Thanks @yespire ! Tomorrow I will fix it 💪🏻