KEMBAR78
GitHub · Where software is built
Skip to content

Issue with Query on Windows | DNS error #154

@ChristianTremblay

Description

@ChristianTremblay

Specifications

  • Client Version: 4.14
  • InfluxDB Version: 3.3.0 (Core, running internally in a container, using a local DNS name)
  • Platform: Windows 11

Error :

InfluxDB3ClientQueryError: Error while executing query: Flight returned unavailable error, with message: DNS resolution failed for influxdb3.myserver.com:8181: C-ares status is not ARES_SUCCESS qtype=AAAA name=docker.servisys.com is_balancer=0: Domain name not found. gRPC client debug context: UNKNOWN:DNS resolution failed for docker.servisys.com:8181: C-ares status is not ARES_SUCCESS qtype=AAAA name=influxdb3.myserver.com is_balancer=0: Domain name not found {created_time:"2025-08-22T21:20:12.4589682+00:00", grpc_status:14}. Client context: IOError: Server never sent a data message. Detail: Internal

Code sample to reproduce problem

dbc = bacnet.database.InfluxDBClient
with dbc.from_env() as client:
    print(await bacnet.database._health())
    print(client.get_server_version())
    resp = client.query("SELECT * FROM 'Device_5221/analog-input:10056' WHERE time >= now() - interval '5 minutes'")

This is an extract of the implementation I use for my library BAC0
Record A was existing in DNS server (Windows Server 2016)
Created a AAAA record didn't solve the issue

Expected behavior

query should return data

Actual behavior

raise error in Flight gRPC

Additional info

Solution:

As per : https://github.com/grpc/grpc/blob/ae131c991f4513d62c7df520219a848d9c100da6/doc/environment_variables.md?plain=1#L156

Setting an environment variable

GRPC_DNS_RESOLVER=native

solves the issue.

Conclusion

Documentation could be improved by adding a note for Windows users regarding Flight DNS issues to use GRPC_DNS_RESOLVER=native.

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions