Title: Version 3.1.2 chokes (fails hard) on parsing real-world user agent that previous versions could parse successfully · Issue #95 · mycsharp/HttpUserAgentParser · GitHub
Open Graph Title: Version 3.1.2 chokes (fails hard) on parsing real-world user agent that previous versions could parse successfully · Issue #95 · mycsharp/HttpUserAgentParser
X Title: Version 3.1.2 chokes (fails hard) on parsing real-world user agent that previous versions could parse successfully · Issue #95 · mycsharp/HttpUserAgentParser
Description: Thanks for building and maintaining this great library! I upgraded to the latest release and found an issue parsing some Repro code: HttpUserAgentParser.Parse("Mozilla/5.0 (Linux; U; Android 13; Infinix X6836 Build/TP1A.220624.014; wv) A...
Open Graph Description: Thanks for building and maintaining this great library! I upgraded to the latest release and found an issue parsing some Repro code: HttpUserAgentParser.Parse("Mozilla/5.0 (Linux; U; Android 13; In...
X Description: Thanks for building and maintaining this great library! I upgraded to the latest release and found an issue parsing some Repro code: HttpUserAgentParser.Parse("Mozilla/5.0 (Linux; U; Android 1...
Opengraph URL: https://github.com/mycsharp/HttpUserAgentParser/issues/95
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Version 3.1.2 chokes (fails hard) on parsing real-world user agent that previous versions could parse successfully","articleBody":"Thanks for building and maintaining this great library! I upgraded to the latest release and found an issue parsing some \n\nRepro code:\n```\nHttpUserAgentParser.Parse(\"Mozilla/5.0 (Linux; U; Android 13; Infinix X6836 Build/TP1A.220624.014; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/145.0.7632.120 Mobile Safari/537.36 OPR/98.0.2254.81553\");\n```\n\nOn 3.1.2, this fails with:\n```\nSystem.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.\n at MyCSharp.HttpUserAgentParser.HttpUserAgentParser.GetBrowser(String userAgent) in /home/runner/work/HttpUserAgentParser/HttpUserAgentParser/src/HttpUserAgentParser/HttpUserAgentParser.cs:line 108\n at MyCSharp.HttpUserAgentParser.HttpUserAgentParser.Parse(String userAgent) in /home/runner/work/HttpUserAgentParser/HttpUserAgentParser/src/HttpUserAgentParser/HttpUserAgentParser.cs:line 30\n```\n\nOn 3.0.28, this works and gives us `MobileDeviceType: Android, Name: Opera, Platform: Android, Version: 98.0.2254.81553`\n\nOther examples that fail on 3.1.2 but not 3.0.28: \n* `Mozilla/5.0 (Linux; U; Android 13; Hisense U53 Build/TP1A.220624.014; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/145.0.7632.79 Mobile Safari/537.36 OPR/98.0.2254.81553`\n* `Mozilla/5.0 (Linux; Android 10; MED-LX9) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.5481.192 Mobile Safari/537.36 OPR/74.0.3922.71152`\n* `Mozilla/5.0 (Linux; U; Android 13; Infinix X6526 Build/TP1A.220624.014; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/145.0.7632.79 Mobile Safari/537.36 OPR/97.1.2254.80849`","author":{"url":"https://github.com/mikethea1","@type":"Person","name":"mikethea1"},"datePublished":"2026-03-05T17:44:59Z","url":"https://github.com/mycsharp/HttpUserAgentParser/issues/95"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:752611dc-bc3c-4098-03ec-8ca34d90603e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B992:335324:1DB9CF:28F69D:6B057305 |
| html-safe-nonce | c83771c309dc0c43b5af6759858d03fbe08ebb1bf31f4a94bec3b5b1ac18634c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOTkyOjMzNTMyNDoxREI5Q0Y6MjhGNjlEOjZCMDU3MzA1IiwidmlzaXRvcl9pZCI6IjUyMTYzNzMwOTU3MzIxNzk3MTgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a11261ad26d591a45ab05322eb9f45027190b6f445b675d45b8dfb42093d23d7 |
| hovercard-subject-tag | issue:4029698391 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/mycsharp/HttpUserAgentParser/95/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b7583a2e75ff946e132c8d56913024671ac1f8d73232a32753fb231480cb9c0c/mycsharp/HttpUserAgentParser/issues/95 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b7583a2e75ff946e132c8d56913024671ac1f8d73232a32753fb231480cb9c0c/mycsharp/HttpUserAgentParser/issues/95 |
| og:image:alt | Thanks for building and maintaining this great library! I upgraded to the latest release and found an issue parsing some Repro code: HttpUserAgentParser.Parse("Mozilla/5.0 (Linux; U; Android 13; In... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mikethea1 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 507b2d62524c0f595c35a2a2ee8a6ec54b119f245b3c59eaa070013b70ed1ada |
| turbo-cache-control | no-preview |
| go-import | github.com/mycsharp/HttpUserAgentParser git https://github.com/mycsharp/HttpUserAgentParser.git |
| octolytics-dimension-user_id | 14853192 |
| octolytics-dimension-user_login | mycsharp |
| octolytics-dimension-repository_id | 367635805 |
| octolytics-dimension-repository_nwo | mycsharp/HttpUserAgentParser |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 367635805 |
| octolytics-dimension-repository_network_root_nwo | mycsharp/HttpUserAgentParser |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | e7a883ae3b439b8952652eaa7803e2587f30e339 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width