question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No platform exists for user agent OS "<undefined agentOsName>"

See original GitHub issue

Describe 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:closed
  • Created 5 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
willdurandcommented, Oct 22, 2018

Ok, so I guess this is a wontfix since we don’t have the log entry anymore.

1reaction
willdurandcommented, Oct 18, 2018

@SeanPrashad you can try to use a tool like HTTPie to send request without a user agent.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found