-
Notifications
You must be signed in to change notification settings - Fork 16
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
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:
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
Assignees
Labels
bugSomething isn't workingSomething isn't working