runtime error
nnection.HTTPSConnection object at 0x7f0bcb8117b0>: Failed to resolve 'api.cohere.ai' ([Errno -3] Temporary failure in name resolution)")) The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/user/app/src/app.py", line 26, in <module> documents = Documents() File "/home/user/app/src/rag_chatbot_with_chat_embed_rerank.py", line 52, in __init__ self.embed() File "/home/user/app/src/rag_chatbot_with_chat_embed_rerank.py", line 122, in embed docs_embs_batch = co.embed( File "/home/user/.local/lib/python3.10/site-packages/cohere/client.py", line 427, in embed for result in self._executor.map(lambda json_body: self._request(cohere.EMBED_URL, json=json_body), json_bodys): File "/usr/local/lib/python3.10/concurrent/futures/_base.py", line 621, in result_iterator yield _result_or_cancel(fs.pop()) File "/usr/local/lib/python3.10/concurrent/futures/_base.py", line 319, in _result_or_cancel return fut.result(timeout) File "/usr/local/lib/python3.10/concurrent/futures/_base.py", line 458, in result return self.__get_result() File "/usr/local/lib/python3.10/concurrent/futures/_base.py", line 403, in __get_result raise self._exception File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, **self.kwargs) File "/home/user/.local/lib/python3.10/site-packages/cohere/client.py", line 427, in <lambda> for result in self._executor.map(lambda json_body: self._request(cohere.EMBED_URL, json=json_body), json_bodys): File "/home/user/.local/lib/python3.10/site-packages/cohere/client.py", line 936, in _request raise CohereConnectionError(str(e)) from e cohere.error.CohereConnectionError: HTTPSConnectionPool(host='api.cohere.ai', port=443): Max retries exceeded with url: /v1/embed (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7f0bcb8117b0>: Failed to resolve 'api.cohere.ai' ([Errno -3] Temporary failure in name resolution)"))
Container logs:
Fetching error logs...