Closed szekelyisz closed 7 months ago
Hey,
Can you provide your Dart code please ? Because I can't reproduce your error, even with empty attributes. Also, which version are you currently using and which version were you previously using ?
Hi. I dug deeper, and it seems like whether the error occurs or not depends on the TXT record returned by the server. The ones that don't trigger the error have at least one zero length field in their TXT. The bad ones don't have any fields. According to RFC 1035 3.3.14, TXT records contain "One or more <character-string>s". So the responses triggering the error are actually invalid. iOS versions before 17 seem to have be permissive and accept the invalid data. So do Android and Avahi. The error message makes sense since the shortest TXT RDATA possible according to the RFC is [00 01 00] (which encodes one zero-length field) is 3 bytes long, so 0 is invalid.
Describe the bug Fails to discover services found by the same code on iOS 15.
To Reproduce Steps to reproduce the behavior:
Expected behavior Services discovered the same way as on previous iOS versions
Smartphone (please complete the following information):
Additional context Debug logs: