Trying to get property 'status' of non-object error
Kovbo opened this issue · comments
Dear members, the package works fine, but I'm receiving the following error after every request recorded in the geoip.log
.
geoip.ERROR: ErrorException: Trying to get property 'status' of non-object in /var/www/laravel/vendor/torann/geoip/src/Services/IPApi.php:74 Stack trace: #0 /var/www/laravel/vendor/torann/geoip/src/Services/IPApi.php(74): Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(8, 'Trying to get p...', '/var/www/larav...', 74, Array) #1 /var/www/laravel/vendor/torann/geoip/src/GeoIP.php(148): Torann\GeoIP\Services\IPApi->locate('97.141.156.87')
The log size increased dramatically up to 14GB and crashed my production server.
What may cause this problem?
The problem might be related to bug #142.
Are there any ways to bypass this error? I have to clear my geoip.log every few days.