添加链接
link之家
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

Hello Team,

We are getting this error when deploying a proxy to Azure OpenAI service, earlier it was working fine. not able to find the root cause of this issue as host and url configured is correct.

We are using SAP AI Core to deploy a proxy service which helps us to connect to Azure OpenAI and gives a response in return.

Please help ASAP in resolving this error as its a blocker

ERROR

“””Error communicating with OpenAI: HTTPSConnectionPool(host='<hostname>', port=443): Max retries exceeded with url: //openai/deployments/"engine name"/chat/completions?api-version=2023-05-15 (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7f8d8096ea70>: Failed to resolve '<hostname>.openai.azure.com' ([Errno -3] Temporary failure in name resolution)"))'} {'_content': b'{"error":"Error communicating with OpenAI: HTTPSConnectionPool(h'              b"ost='<host>.openai.azure.com', port=443): Max ret"              b'ries exceeded with url: //openai/deployments/<engine>/chat/'              b'completions?api-version=2023-05-15 (Caused by NameResolutionErro'              b'r( \\"<urllib3.connection.HTTPSConnection object at 0x7f8d8096'              b"ea70>: Failed to resolve '<host>.openai.azure.com"              b'' ([Errno -3] Temporary failure in name resolution) \\"))"}\n )%22%7d/n)', '_content_consumed': True”””.

Balur, Harsha Just checking to see if you had a chance to review the below response.

Do let us know if that helps or have any other queries.

If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further queries do let us know.

Balur, Harsha Greetings!

Can you confirm if you are using the correct endpoint?

You have mentioned it was working fine earlier. Did you change any proxy configurations?

The error message indicates that the hostname could not be resolved. This could be due to a temporary network issue or a misconfiguration in the hostname or DNS settings.

To resolve this issue, you can try the below troubleshooting steps.

  • Check and verify the hostname by checking the Azure portal or the configuration file of your SAP AI Core proxy service.
  • Check the DNS settings and make sure they are correct. You can try to ping the hostname from the machine where the proxy service is running to see if it can be resolved.
  • Check the network connectivity and make sure there are no network issues. You can try to access the OpenAI service directly from the machine where the proxy service is running to see if it is accessible.
  • Let me know if that helps.

    Balur, Harsha You can also try restarting the proxy service and see if that resolves the issue. Sometimes, a simple restart can fix issues related to network connectivity or DNS resolution.

    If that doesn't help, For a deeper investigation and immediate assistance on this issue, please file a support request @ https://aka.ms/azsupt ?