Skip to content

Trying to get property 'status' of non-object error #179

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

Closed
Kovbo opened this issue Mar 11, 2020 · 0 comments
Closed

Trying to get property 'status' of non-object error #179

Kovbo opened this issue Mar 11, 2020 · 0 comments

Comments

@Kovbo
Copy link

Kovbo commented Mar 11, 2020

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.

@Kovbo Kovbo closed this as completed May 3, 2020
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

1 participant