Exception: ServiceRequestError: <urllib3.connection.HTTPSConnection object at 0x0000029A0A54CFA0>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed #2436
I have access to resource group of Azure function now i have locally azure function in VS Code but every time i try to run it give me error:
Operating System: Window 11
$ func start
Found Python version 3.10.0 (py).
Azure Functions Core Tools
Core Tools Version: 4.0.5455 Commit hash: N/A (64-bit)
Function Runtime Version: 4.27.5.21554
[2024-01-15T08:28:58.907Z] Customer packages not in sys path. This should never happen!
[2024-01-15T08:29:00.712Z] Worker process started and initialized.
Functions:
azure-function-test: [POST] http://localhost:7071/api/azure-function-test
For detailed output, run func with --verbose flag.
[2024-01-15T08:29:14.397Z] Worker failed to load function: 'azure-function-test' with functionId: '6f2d5673-43tb-4d52-bdb1-f7b681a22bab'.
[2024-01-15T08:29:14.399Z] Result: Failure
Exception: ServiceRequestError: <urllib3.connection.HTTPSConnection object at 0x0000029A0A54CFA0>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed
Stack: File "C:\Program Files\Microsoft\Azure Functions Core Tools\workers\python\3.10\WINDOWS\X64\azure_functions_worker\dispatcher.py", line 387, in _handle__function_load_request
func = loader.load_function(
File "C:\Program Files\Microsoft\Azure Functions Core Tools\workers\python\3.10\WINDOWS\X64\azure_functions_worker\utils\wrappers.py", line 44, in call
return func(*args, **kwargs)
File "C:\Program Files\Microsoft\Azure Functions Core Tools\workers\python\3.10\WINDOWS\X64\azure_functions_worker\loader.py", line 194, in load_function
mod = importlib.import_module(fullmodname)
File "C:\Users\Han\AppData\Local\Programs\Python\Python310\lib\importlib\__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 883, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "C:\Users\Hanzalah\Desktop\dev\JIRA-TICKET\mobiz-hybrid-sql-agent\hybrid-agent\sanofi-apollo-sql\__init__.py", line 11, in <module>
from .azure_knowledge_bot import apollo_conversation_chain
File "C:\Users\Han\Desktop\dev\JIRA-TICKET\mobiz-hybrid-sql-agent\hybrid-agent\sanofi-apollo-sql\azure_knowledge_bot.py", line 337, in <module>
acs, llm = get_acs_llm_instances()
File "C:\Users\Han\Desktop\dev\JIRA-TICKET\mobiz-hybrid-sql-agent\hybrid-agent\sanofi-apollo-sql\azure_knowledge_bot.py", line 328, in get_acs_llm_instances
acs, llm = configure_chatbot_with_azure_search()
File "C:\Users\Han\Desktop\dev\JIRA-TICKET\mobiz-hybrid-sql-agent\hybrid-agent\sanofi-apollo-sql\azure_knowledge_bot.py", line 146, in configure_chatbot_with_azure_search
acs = AzureSearch(
File "C:\Users\Han\Desktop\dev\JIRA-TICKET\apollo_env\lib\site-packages\langchain\vectorstores\azuresearch.py", line 237, in __init__
self.client = _get_search_client(
File "C:\Users\Han\Desktop\dev\JIRA-TICKET\apollo_env\lib\site-packages\langchain\vectorstores\azuresearch.py", line 105, in _get_search_client
index_client.get_index(name=index_name)
File "C:\Users\Han\Desktop\dev\JIRA-TICKET\apollo_env\lib\site-packages\azure\core\tracing\decorator.py", line 78, in wrapper_use_tracer
return func(*args, **kwargs)
File "C:\Users\Han\Desktop\dev\JIRA-TICKET\apollo_env\lib\site-packages\azure\search\documents\indexes\_search_index_client.py", line 136, in get_index
result = self._client.indexes.get(name, **kwargs)
File "C:\Users\Han\Desktop\dev\JIRA-TICKET\apollo_env\lib\site-packages\azure\core\tracing\decorator.py", line 78, in wrapper_use_tracer
return func(*args, **kwargs)
File "C:\Users\Han\Desktop\dev\JIRA-TICKET\apollo_env\lib\site-packages\azure\search\documents\indexes\_generated\operations\_indexes_operations.py", line 870, in get
pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
File "C:\Users\Han\Desktop\dev\JIRA-TICKET\apollo_env\lib\site-packages\azure\core\pipeline\_base.py", line 230, in run
return first_node.send(pipeline_request)
File "C:\Users\Han\Desktop\dev\JIRA-TICKET\apollo_env\lib\site-packages\azure\core\pipeline\_base.py", line 86, in send
response = self.next.send(request)
File "C:\Users\Han\Desktop\dev\JIRA-TICKET\apollo_env\lib\site-packages\azure\core\pipeline\_base.py", line 86, in send
response = self.next.send(request)
File "C:\Users\Han\Desktop\dev\JIRA-TICKET\apollo_env\lib\site-packages\azure\core\pipeline\_base.py", line 86, in send
response = self.next.send(request)
[Previous line repeated 2 more times]
File "C:\Users\Han\Desktop\dev\JIRA-TICKET\apollo_env\lib\site-packages\azure\core\pipeline\policies\_redirect.py", line 197, in send
response = self.next.send(request)
File "C:\Users\Han\Desktop\dev\JIRA-TICKET\apollo_env\lib\site-packages\azure\core\pipeline\policies\_retry.py", line 553, in send
raise err
File "C:\Users\Han\Desktop\dev\JIRA-TICKET\apollo_env\lib\site-packages\azure\core\pipeline\policies\_retry.py", line 531, in send
response = self.next.send(request)
File "C:\Users\Han\Desktop\dev\JIRA-TICKET\apollo_env\lib\site-packages\azure\core\pipeline\_base.py", line 86, in send
response = self.next.send(request)
File "C:\Users\Han\Desktop\dev\JIRA-TICKET\apollo_env\lib\site-packages\azure\core\pipeline\_base.py", line 86, in send
response = self.next.send(request)
File "C:\Users\Han\Desktop\dev\JIRA-TICKET\apollo_env\lib\site-packages\azure\core\pipeline\_base.py", line 86, in send
response = self.next.send(request)
[Previous line repeated 2 more times]
File "C:\Users\Han\Desktop\dev\JIRA-TICKET\apollo_env\lib\site-packages\azure\core\pipeline\_base.py", line 119, in send
self._sender.send(request.http_request, **request.context.options),
File "C:\Users\Han\Desktop\dev\JIRA-TICKET\apollo_env\lib\site-packages\azure\core\pipeline\transport\_requests_basic.py", line 381, in send
raise error
.
I dont know what to do , At first i assume i have no access to resource group then i got access but still i am unable to solve this error locally on VS Code.
Hi @ everyone Hope you doing well.
I have access to resource group of Azure function now i have locally azure function in VS Code but every time i try to run it give me error:
Operating System:
Window 11
I dont know what to do , At first i assume i have no access to resource group then i got access but still i am unable to solve this error locally on VS Code.