Score:0

Windows 11 - WSL2 Ubuntu Instance - gRPC DNS Resolution Failed

cn flag

I’m trying to figure out HOW to get sample Python apps from https://docs.nuance.com to work in WSL2, specifically Ubuntu at the moment. However, I get it all to work but it fails to connect to the Nuance endpoint, dlg.api.nuance.com:443 with the following error:

Traceback (most recent call last):
File “/mnt/c/repo/python_samples/nuance_dlg/./dlg_client.py”, line 151, in
main()
File “/mnt/c/repo/python_samples/nuance_dlg/./dlg_client.py”, line 117, in main
response, call = start_request(stub,
^^^^^^^^^^^^^^^^^^^
File “/mnt/c/repo/python_samples/nuance_dlg/./dlg_client.py”, line 72, in start_request
start_response, call = stub.Start.with_call(start_req)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/mnt/c/repo/python_samples/nuance_dlg/dlg_venv/lib/python3.11/site-packages/grpc/_channel.py”, line 957, in with_call
return _end_unary_response_blocking(state, call, True, None)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/mnt/c/repo/python_samples/nuance_dlg/dlg_venv/lib/python3.11/site-packages/grpc/_channel.py”, line 849, in _end_unary_response_blocking
raise _InactiveRpcError(state)
grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
status = StatusCode.UNAVAILABLE
details = “DNS resolution failed for https://dlg.api.nuance.com:443: C-ares status is not ARES_SUCCESS qtype=AAAA name=https://dlg.api.nuance.com:443 is_balancer=0: Domain name not found”
debug_error_string = “UNKNOWN:DNS resolution failed for https://dlg.api.nuance.com:443: C-ares status is not ARES_SUCCESS qtype=AAAA name=https://dlg.api.nuance.com:443 is_balancer=0: Domain name not found {created_time:“2023-03-08T08:42:33.208065619-05:00”, grpc_status:14}”

I’ve found online that WSL2 operates behind a NAT on a virtual NIC. But, I tried using WSL1 instead and received the same error.

windows subsystem for linux - Can’t connect to server over HTTPS in WSL - Ask Ubuntu

In my WSL2 instance, I also tried updating the wsl.conf file per the link below to NOT autogenerate the resolv.conf and added nameservers 8.8.8.8 and 1.1.1.1 to resolve.conf but still the same error.

networking - Temporary Failure in name resolution on WSL - Ask Ubuntu

I don't have the ability to disable the Windows Firewall on my machine and CAN state that I can actually make these scripts work in a Cygwin terminal but my target OS for my testing is Ubuntu.

I'm just not familiar enough to keep troubleshooting WHY this won't work.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.