unresolved host response while trying to hit the endpoint

Sachin Raorane 0 Reputation points
2025-11-24T07:35:43.1866667+00:00

getting unresolved host response while trying to hit the endpoint with API key from android device. Already created the Open AI resource and deployed the model on Azure Foundry but still facing issue. can you guide us further

Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
{count} votes

2 answers

Sort by: Most helpful
  1. Q&A Assist
    2025-11-24T07:35:52.9033333+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    If you are encountering an "unresolved host" response while trying to hit the endpoint with your API key from an Android device, here are some troubleshooting steps you can follow:

    1. Check the Endpoint URL: Ensure that the endpoint URL you are using is correctly formatted. It should include /openai/v1/ at the end. For example, it should look like https://<your-resource-name>.openai.azure.com/openai/v1/.
    2. Network Connectivity: Verify that your Android device has a stable internet connection. Sometimes, network issues can lead to unresolved host errors.
    3. DNS Issues: If you are using a custom DNS, it might not be resolving the Azure endpoint correctly. Try switching to a public DNS like Google DNS (8.8.8.8) or Cloudflare DNS (1.1.1.1).
    4. Firewall and Security Settings: Ensure that there are no firewall or security settings on your network that might be blocking access to the Azure endpoint.
    5. API Key Validity: Double-check that your API key is correct and has not expired.
    6. Model Deployment: Confirm that the model deployment is active in your Azure Foundry resource. If the deployment is inactive, it could lead to errors when trying to access the endpoint.

    If you continue to face issues after checking these points, consider reaching out to Azure support for further assistance.

    0 comments No comments

  2. Manas Mohanty 13,340 Reputation points Moderator
    2025-11-26T07:15:25.5766667+00:00

    Hi Sachin Raorane

    Normally "Unresolved Host" issues occur when endpoints are not getting private Ip as per DNS records in private endpoint. Solution for them is to re-create the private endpoint or fix the corrupt DNS records.

    For Custom DNS - We need Correct DNS records in Host Records for conditional forwarder to get correct private IP.

    Reference guide for fixing DNS issue - https://learn.microsoft.com/en-us/azure/machine-learning/how-to-troubleshoot-secure-connection-workspace?view=azureml-api-2

    For public endpoint, we need correct endpoint, api key, deployment and key to get results as Q and A assist suggested.

    Please share the full error trace and confirm the networking scenario to understand the problem better.

    Thank you.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.