Title: Zeroconf.get_service_info seems broken in 0.26.0 · Issue #255 · python-zeroconf/python-zeroconf · GitHub
Open Graph Title: Zeroconf.get_service_info seems broken in 0.26.0 · Issue #255 · python-zeroconf/python-zeroconf
X Title: Zeroconf.get_service_info seems broken in 0.26.0 · Issue #255 · python-zeroconf/python-zeroconf
Description: Several Home Assistant users have reported that cast devices can't be discovered correctly after a recent upgrade which bumps zeroconf from 0.25.1 to 0.26.1: home-assistant/core#35922 According to some testing, the problem appeared in 0....
Open Graph Description: Several Home Assistant users have reported that cast devices can't be discovered correctly after a recent upgrade which bumps zeroconf from 0.25.1 to 0.26.1: home-assistant/core#35922 According to ...
X Description: Several Home Assistant users have reported that cast devices can't be discovered correctly after a recent upgrade which bumps zeroconf from 0.25.1 to 0.26.1: home-assistant/core#35922 According...
Opengraph URL: https://github.com/python-zeroconf/python-zeroconf/issues/255
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Zeroconf.get_service_info seems broken in 0.26.0","articleBody":"Several Home Assistant users have reported that cast devices can't be discovered correctly after a recent upgrade which bumps zeroconf from 0.25.1 to 0.26.1: https://github.com/home-assistant/core/issues/35922\r\n\r\nAccording to some testing, the problem appeared in 0.26.0, which adds jstasiak/python-zeroconf#239\r\n\r\nIt seems that the problem is that `Zeroconf.get_service_info` doesn't return anything useful in 0.26.0+, from the logs it seems that Zeroconf keeps sending queries but does not get or does not accept answers.\r\n\r\nDebug logs here:\r\nhttps://github.com/home-assistant/core/issues/35922#issuecomment-633261933\r\n\r\nFor context, this is the code in pychromecast which calls `Zeroconf.get_service_info`, look for the `add_service` and `service` prints in the logs:\r\n```py\r\n def add_service(self, zconf, typ, name):\r\n \"\"\" Add a service to the collection. \"\"\"\r\n service = None\r\n tries = 0\r\n _LOGGER.debug(\"add_service %s, %s\", typ, name)\r\n while service is None and tries \u003c 4:\r\n try:\r\n service = zconf.get_service_info(typ, name)\r\n except IOError:\r\n # If the zeroconf fails to receive the necessary data we abort\r\n # adding the service\r\n break\r\n tries += 1\r\n\r\n if not service:\r\n _LOGGER.debug(\"add_service failed to add %s, %s\", typ, name)\r\n return\r\n```\r\n\r\n@mattsaxon, any idea?","author":{"url":"https://github.com/emontnemery","@type":"Person","name":"emontnemery"},"datePublished":"2020-05-24T19:46:21Z","url":"https://github.com/python-zeroconf/python-zeroconf/issues/255"}
| 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:3238a98d-4e49-a39d-6a47-c536c117f4dd |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 917E:2A02D3:43FEEC:5E0C3B:6B00909C |
| html-safe-nonce | 564514de97377b0de12f67537b980e6dd2be4f5b5ef209687df6dc9245c94525 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MTdFOjJBMDJEMzo0M0ZFRUM6NUUwQzNCOjZCMDA5MDlDIiwidmlzaXRvcl9pZCI6IjU0NzQ0ODk0NDE4MzE2NTM1MzIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | ec42eb2131d967d4e17f673ff6fbe1ac4d4f11f40d964ccdcc80480ab9180242 |
| hovercard-subject-tag | issue:623932307 |
| 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/python-zeroconf/python-zeroconf/255/issue_layout |
| twitter:image | https://opengraph.githubassets.com/53900ce50435ea6197dab5e8551ceead4eed0995edb0ace18686d47560c0ab73/python-zeroconf/python-zeroconf/issues/255 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/53900ce50435ea6197dab5e8551ceead4eed0995edb0ace18686d47560c0ab73/python-zeroconf/python-zeroconf/issues/255 |
| og:image:alt | Several Home Assistant users have reported that cast devices can't be discovered correctly after a recent upgrade which bumps zeroconf from 0.25.1 to 0.26.1: home-assistant/core#35922 According to ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | emontnemery |
| hostname | github.com |
| expected-hostname | github.com |
| None | c710a5cb5c47be60abfe6e8410436d409906979dbed614ef09f29c60f5535b08 |
| turbo-cache-control | no-preview |
| go-import | github.com/python-zeroconf/python-zeroconf git https://github.com/python-zeroconf/python-zeroconf.git |
| octolytics-dimension-user_id | 120192235 |
| octolytics-dimension-user_login | python-zeroconf |
| octolytics-dimension-repository_id | 21548731 |
| octolytics-dimension-repository_nwo | python-zeroconf/python-zeroconf |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 21548731 |
| octolytics-dimension-repository_network_root_nwo | python-zeroconf/python-zeroconf |
| 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 | be616a2a6ec1c609d6e002896dff5352d5c5f28b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width