No platform exists for user agent OS "<undefined agentOsName>"
See original GitHub issueDescribe the problem and steps to reproduce it:
I read the production logs.
What happened?
I saw:
{
"Fields": {
"msg": "No platform exists for user agent OS \"<undefined agentOsName>\""
},
"Logger": "amo",
"Severity": 3,
}
What did you expect to happen?
I don’t know. Maybe it is a false positive but we should investigate why the user agent OS value is <undefined agentOsName>
.
What to do?
We should change the log level of this message from error
to warning
by updating this block: https://github.com/mozilla/addons-frontend/blob/adb2ad0132798af9f5fee9e5c98c542265ba5b40/src/amo/components/PermissionsCard/permissions.js#L73-L77
Instead of calling log.error
, we should call log.warn
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
How to determine browser platform without navigator.platform
One option would be using navigator.userAgentData along with the .getHighEntropyValues() method. Then we can utilize the User-Agent Client ...
Read more >User-Agent string contains `undefined` in browserified build
The values returned from Node's process.platform already don't match what browsers put there, and we return the empty string for navigator.
Read more >Navigator.userAgentData - Web APIs - MDN Web Docs
The userAgentData read-only property of the Navigator interface returns a NavigatorUAData object which can be used to access the User-Agent ...
Read more >User Agent in Safari on iPadOS | Apple Developer Forums
During authentication flow in Safari, we have a case when in order to satisfy a condition policy, user needs to install the app...
Read more >Migrate to User-Agent Client Hints - web.dev
Strategies to migrate your site from relying on the user-agent string to the new User-Agent ... Sec-CH-UA-Platform : operating system name.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Ok, so I guess this is a wontfix since we don’t have the log entry anymore.
@SeanPrashad you can try to use a tool like HTTPie to send request without a user agent.