Skip to content
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

[1.x] Update browser and device name detection for missing user agent #33

Closed

Conversation

Udaberrico
Copy link

Hi,
in our monitoring, it often happens that the user agent is not set, for example, with webhooks, 404 pages, etc. This PR checks if the $_SERVER variable is set and handles the error accordingly.

@milwad-dev milwad-dev marked this pull request as draft March 28, 2024 16:13
Copy link
Member

@milwad-dev milwad-dev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@milwad-dev milwad-dev closed this Mar 29, 2024
@milwad-dev milwad-dev changed the title Update browser and device name detection for missing user agent [1.x] Update browser and device name detection for missing user agent Mar 29, 2024
@Udaberrico
Copy link
Author

Udaberrico commented Mar 30, 2024

So why do I get this error message:

production.ERROR: Undefined array key "HTTP_USER_AGENT" {"exception":"[object] (ErrorException(code: 0): Undefined array key \"HTTP_USER_AGENT\" at /home/forge/hupfer-configurator.com/vendor/binafy/laravel-user-monitoring/src/Utills/Detector.php:63)

@milwad-dev
Copy link
Member

The bug has been resolved.

78cd774

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

Successfully merging this pull request may close these issues.

2 participants