Files
lc_stylist_agent/logs/error.log
2025-10-24 10:37:19 +08:00

396 lines
32 KiB
Plaintext

2025-10-23 12:42:40,052 base_events.py [line:1758] ERROR Task exception was never retrieved
future: <Task finished name='Task-3' coro=<LCAgent.background_run() done, defined at /app/app/server/ChatbotAgent/agent_server.py:57> exception=DefaultCredentialsError('Gemini API call failed: Your default credentials were not found. To set up Application Default Credentials, see https://cloud.google.com/docs/authentication/external/set-up-adc for more information.')>
Traceback (most recent call last):
File "/app/app/core/llm_interface.py", line 45, in generate_response
response = await self.gemini_client.aio.models.generate_content(
File "/usr/local/lib/python3.10/dist-packages/google/genai/models.py", line 6757, in generate_content
response = await self._generate_content(
File "/usr/local/lib/python3.10/dist-packages/google/genai/models.py", line 5592, in _generate_content
response = await self._api_client.async_request(
File "/usr/local/lib/python3.10/dist-packages/google/genai/_api_client.py", line 1341, in async_request
result = await self._async_request(
File "/usr/local/lib/python3.10/dist-packages/google/genai/_api_client.py", line 1286, in _async_request
return await self._async_retry( # type: ignore[no-any-return]
File "/usr/local/lib/python3.10/dist-packages/tenacity/asyncio/__init__.py", line 111, in __call__
do = await self.iter(retry_state=retry_state)
File "/usr/local/lib/python3.10/dist-packages/tenacity/asyncio/__init__.py", line 153, in iter
result = await action(retry_state)
File "/usr/local/lib/python3.10/dist-packages/tenacity/_utils.py", line 99, in inner
return call(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/tenacity/__init__.py", line 420, in exc_check
raise retry_exc.reraise()
File "/usr/local/lib/python3.10/dist-packages/tenacity/__init__.py", line 187, in reraise
raise self.last_attempt.result()
File "/usr/lib/python3.10/concurrent/futures/_base.py", line 451, in result
return self.__get_result()
File "/usr/lib/python3.10/concurrent/futures/_base.py", line 403, in __get_result
raise self._exception
File "/usr/local/lib/python3.10/dist-packages/tenacity/asyncio/__init__.py", line 114, in __call__
result = await fn(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/google/genai/_api_client.py", line 1153, in _async_request_once
f'Bearer {await self._async_access_token()}'
File "/usr/local/lib/python3.10/dist-packages/google/genai/_api_client.py", line 970, in _async_access_token
self._credentials, project = await asyncio.to_thread(
File "/usr/lib/python3.10/asyncio/threads.py", line 25, in to_thread
return await loop.run_in_executor(None, func_call)
File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.10/dist-packages/google/genai/_api_client.py", line 184, in load_auth
credentials, loaded_project_id = google.auth.default( # type: ignore[no-untyped-call]
File "/usr/local/lib/python3.10/dist-packages/google/auth/_default.py", line 739, in default
raise exceptions.DefaultCredentialsError(_CLOUD_SDK_MISSING_CREDENTIALS)
google.auth.exceptions.DefaultCredentialsError: Your default credentials were not found. To set up Application Default Credentials, see https://cloud.google.com/docs/authentication/external/set-up-adc for more information.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/app/app/server/ChatbotAgent/agent_server.py", line 59, in background_run
request_summary = await self.get_conversation_summary(request.user_id)
File "/app/app/server/ChatbotAgent/agent_server.py", line 84, in get_conversation_summary
summary = await self.llm.generate_response(history=[Message(role=Role.USER, content=input_message)], system_prompt=SUMMARY_PROMPT)
File "/app/app/core/llm_interface.py", line 55, in generate_response
raise type(e)(f"Gemini API call failed: {e}")
google.auth.exceptions.DefaultCredentialsError: Gemini API call failed: Your default credentials were not found. To set up Application Default Credentials, see https://cloud.google.com/docs/authentication/external/set-up-adc for more information.
2025-10-23 12:45:52,806 base_events.py [line:1758] ERROR Task exception was never retrieved
future: <Task finished name='Task-3' coro=<LCAgent.background_run() done, defined at /app/app/server/ChatbotAgent/agent_server.py:57> exception=DefaultCredentialsError('Gemini API call failed: File /workspace/lc_stylist_agent/request.json was not found.')>
Traceback (most recent call last):
File "/app/app/core/llm_interface.py", line 45, in generate_response
response = await self.gemini_client.aio.models.generate_content(
File "/usr/local/lib/python3.10/dist-packages/google/genai/models.py", line 6757, in generate_content
response = await self._generate_content(
File "/usr/local/lib/python3.10/dist-packages/google/genai/models.py", line 5592, in _generate_content
response = await self._api_client.async_request(
File "/usr/local/lib/python3.10/dist-packages/google/genai/_api_client.py", line 1341, in async_request
result = await self._async_request(
File "/usr/local/lib/python3.10/dist-packages/google/genai/_api_client.py", line 1286, in _async_request
return await self._async_retry( # type: ignore[no-any-return]
File "/usr/local/lib/python3.10/dist-packages/tenacity/asyncio/__init__.py", line 111, in __call__
do = await self.iter(retry_state=retry_state)
File "/usr/local/lib/python3.10/dist-packages/tenacity/asyncio/__init__.py", line 153, in iter
result = await action(retry_state)
File "/usr/local/lib/python3.10/dist-packages/tenacity/_utils.py", line 99, in inner
return call(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/tenacity/__init__.py", line 420, in exc_check
raise retry_exc.reraise()
File "/usr/local/lib/python3.10/dist-packages/tenacity/__init__.py", line 187, in reraise
raise self.last_attempt.result()
File "/usr/lib/python3.10/concurrent/futures/_base.py", line 451, in result
return self.__get_result()
File "/usr/lib/python3.10/concurrent/futures/_base.py", line 403, in __get_result
raise self._exception
File "/usr/local/lib/python3.10/dist-packages/tenacity/asyncio/__init__.py", line 114, in __call__
result = await fn(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/google/genai/_api_client.py", line 1153, in _async_request_once
f'Bearer {await self._async_access_token()}'
File "/usr/local/lib/python3.10/dist-packages/google/genai/_api_client.py", line 970, in _async_access_token
self._credentials, project = await asyncio.to_thread(
File "/usr/lib/python3.10/asyncio/threads.py", line 25, in to_thread
return await loop.run_in_executor(None, func_call)
File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.10/dist-packages/google/genai/_api_client.py", line 184, in load_auth
credentials, loaded_project_id = google.auth.default( # type: ignore[no-untyped-call]
File "/usr/local/lib/python3.10/dist-packages/google/auth/_default.py", line 705, in default
credentials, project_id = checker()
File "/usr/local/lib/python3.10/dist-packages/google/auth/_default.py", line 698, in <lambda>
lambda: _get_explicit_environ_credentials(quota_project_id=quota_project_id),
File "/usr/local/lib/python3.10/dist-packages/google/auth/_default.py", line 346, in _get_explicit_environ_credentials
credentials, project_id = load_credentials_from_file(
File "/usr/local/lib/python3.10/dist-packages/google/auth/_default.py", line 173, in load_credentials_from_file
raise exceptions.DefaultCredentialsError(
google.auth.exceptions.DefaultCredentialsError: File /workspace/lc_stylist_agent/request.json was not found.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/app/app/server/ChatbotAgent/agent_server.py", line 59, in background_run
request_summary = await self.get_conversation_summary(request.user_id)
File "/app/app/server/ChatbotAgent/agent_server.py", line 84, in get_conversation_summary
summary = await self.llm.generate_response(history=[Message(role=Role.USER, content=input_message)], system_prompt=SUMMARY_PROMPT)
File "/app/app/core/llm_interface.py", line 55, in generate_response
raise type(e)(f"Gemini API call failed: {e}")
google.auth.exceptions.DefaultCredentialsError: Gemini API call failed: File /workspace/lc_stylist_agent/request.json was not found.
2025-10-23 12:49:29,266 base_events.py [line:1758] ERROR Task exception was never retrieved
future: <Task finished name='Task-3' coro=<LCAgent.background_run() done, defined at /app/app/server/ChatbotAgent/agent_server.py:57> exception=DefaultCredentialsError('Gemini API call failed: File /app/app/request.json was not found.')>
Traceback (most recent call last):
File "/app/app/core/llm_interface.py", line 45, in generate_response
response = await self.gemini_client.aio.models.generate_content(
File "/usr/local/lib/python3.10/dist-packages/google/genai/models.py", line 6757, in generate_content
response = await self._generate_content(
File "/usr/local/lib/python3.10/dist-packages/google/genai/models.py", line 5592, in _generate_content
response = await self._api_client.async_request(
File "/usr/local/lib/python3.10/dist-packages/google/genai/_api_client.py", line 1341, in async_request
result = await self._async_request(
File "/usr/local/lib/python3.10/dist-packages/google/genai/_api_client.py", line 1286, in _async_request
return await self._async_retry( # type: ignore[no-any-return]
File "/usr/local/lib/python3.10/dist-packages/tenacity/asyncio/__init__.py", line 111, in __call__
do = await self.iter(retry_state=retry_state)
File "/usr/local/lib/python3.10/dist-packages/tenacity/asyncio/__init__.py", line 153, in iter
result = await action(retry_state)
File "/usr/local/lib/python3.10/dist-packages/tenacity/_utils.py", line 99, in inner
return call(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/tenacity/__init__.py", line 420, in exc_check
raise retry_exc.reraise()
File "/usr/local/lib/python3.10/dist-packages/tenacity/__init__.py", line 187, in reraise
raise self.last_attempt.result()
File "/usr/lib/python3.10/concurrent/futures/_base.py", line 451, in result
return self.__get_result()
File "/usr/lib/python3.10/concurrent/futures/_base.py", line 403, in __get_result
raise self._exception
File "/usr/local/lib/python3.10/dist-packages/tenacity/asyncio/__init__.py", line 114, in __call__
result = await fn(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/google/genai/_api_client.py", line 1153, in _async_request_once
f'Bearer {await self._async_access_token()}'
File "/usr/local/lib/python3.10/dist-packages/google/genai/_api_client.py", line 970, in _async_access_token
self._credentials, project = await asyncio.to_thread(
File "/usr/lib/python3.10/asyncio/threads.py", line 25, in to_thread
return await loop.run_in_executor(None, func_call)
File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.10/dist-packages/google/genai/_api_client.py", line 184, in load_auth
credentials, loaded_project_id = google.auth.default( # type: ignore[no-untyped-call]
File "/usr/local/lib/python3.10/dist-packages/google/auth/_default.py", line 705, in default
credentials, project_id = checker()
File "/usr/local/lib/python3.10/dist-packages/google/auth/_default.py", line 698, in <lambda>
lambda: _get_explicit_environ_credentials(quota_project_id=quota_project_id),
File "/usr/local/lib/python3.10/dist-packages/google/auth/_default.py", line 346, in _get_explicit_environ_credentials
credentials, project_id = load_credentials_from_file(
File "/usr/local/lib/python3.10/dist-packages/google/auth/_default.py", line 173, in load_credentials_from_file
raise exceptions.DefaultCredentialsError(
google.auth.exceptions.DefaultCredentialsError: File /app/app/request.json was not found.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/app/app/server/ChatbotAgent/agent_server.py", line 59, in background_run
request_summary = await self.get_conversation_summary(request.user_id)
File "/app/app/server/ChatbotAgent/agent_server.py", line 84, in get_conversation_summary
summary = await self.llm.generate_response(history=[Message(role=Role.USER, content=input_message)], system_prompt=SUMMARY_PROMPT)
File "/app/app/core/llm_interface.py", line 55, in generate_response
raise type(e)(f"Gemini API call failed: {e}")
google.auth.exceptions.DefaultCredentialsError: Gemini API call failed: File /app/app/request.json was not found.
2025-10-23 12:51:11,997 base_events.py [line:1758] ERROR Task exception was never retrieved
future: <Task finished name='Task-3' coro=<LCAgent.background_run() done, defined at /app/app/server/ChatbotAgent/agent_server.py:57> exception=RuntimeError("Failed to load credentials from file /workspace/lc_stylist_agent/request.json: [Errno 2] No such file or directory: '/workspace/lc_stylist_agent/request.json'")>
Traceback (most recent call last):
File "/app/app/core/stylist_agent_server.py", line 38, in __init__
self.credentials = service_account.Credentials.from_service_account_file('/workspace/lc_stylist_agent/request.json')
File "/usr/local/lib/python3.10/dist-packages/google/oauth2/service_account.py", line 264, in from_service_account_file
info, signer = _service_account_info.from_filename(
File "/usr/local/lib/python3.10/dist-packages/google/auth/_service_account_info.py", line 78, in from_filename
with io.open(filename, "r", encoding="utf-8") as json_file:
FileNotFoundError: [Errno 2] No such file or directory: '/workspace/lc_stylist_agent/request.json'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/app/app/server/ChatbotAgent/agent_server.py", line 63, in background_run
recommendation_results = await self.recommend_outfit(request_summary=request_summary,
File "/app/app/server/ChatbotAgent/agent_server.py", line 99, in recommend_outfit
agent = AsyncStylistAgent(**self.stylist_agent_kwages)
File "/app/app/core/stylist_agent_server.py", line 41, in __init__
raise RuntimeError(f"Failed to load credentials from file {'/workspace/lc_stylist_agent/request.json'}: {e}")
RuntimeError: Failed to load credentials from file /workspace/lc_stylist_agent/request.json: [Errno 2] No such file or directory: '/workspace/lc_stylist_agent/request.json'
2025-10-23 12:55:42,692 base_events.py [line:1758] ERROR Task exception was never retrieved
future: <Task finished name='Task-3' coro=<LCAgent.background_run() done, defined at /app/app/server/ChatbotAgent/agent_server.py:57> exception=DefaultCredentialsError('Gemini API call failed: Your default credentials were not found. To set up Application Default Credentials, see https://cloud.google.com/docs/authentication/external/set-up-adc for more information.')>
Traceback (most recent call last):
File "/app/app/core/llm_interface.py", line 45, in generate_response
response = await self.gemini_client.aio.models.generate_content(
File "/usr/local/lib/python3.10/dist-packages/google/genai/models.py", line 6757, in generate_content
response = await self._generate_content(
File "/usr/local/lib/python3.10/dist-packages/google/genai/models.py", line 5592, in _generate_content
response = await self._api_client.async_request(
File "/usr/local/lib/python3.10/dist-packages/google/genai/_api_client.py", line 1341, in async_request
result = await self._async_request(
File "/usr/local/lib/python3.10/dist-packages/google/genai/_api_client.py", line 1286, in _async_request
return await self._async_retry( # type: ignore[no-any-return]
File "/usr/local/lib/python3.10/dist-packages/tenacity/asyncio/__init__.py", line 111, in __call__
do = await self.iter(retry_state=retry_state)
File "/usr/local/lib/python3.10/dist-packages/tenacity/asyncio/__init__.py", line 153, in iter
result = await action(retry_state)
File "/usr/local/lib/python3.10/dist-packages/tenacity/_utils.py", line 99, in inner
return call(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/tenacity/__init__.py", line 420, in exc_check
raise retry_exc.reraise()
File "/usr/local/lib/python3.10/dist-packages/tenacity/__init__.py", line 187, in reraise
raise self.last_attempt.result()
File "/usr/lib/python3.10/concurrent/futures/_base.py", line 451, in result
return self.__get_result()
File "/usr/lib/python3.10/concurrent/futures/_base.py", line 403, in __get_result
raise self._exception
File "/usr/local/lib/python3.10/dist-packages/tenacity/asyncio/__init__.py", line 114, in __call__
result = await fn(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/google/genai/_api_client.py", line 1153, in _async_request_once
f'Bearer {await self._async_access_token()}'
File "/usr/local/lib/python3.10/dist-packages/google/genai/_api_client.py", line 970, in _async_access_token
self._credentials, project = await asyncio.to_thread(
File "/usr/lib/python3.10/asyncio/threads.py", line 25, in to_thread
return await loop.run_in_executor(None, func_call)
File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.10/dist-packages/google/genai/_api_client.py", line 184, in load_auth
credentials, loaded_project_id = google.auth.default( # type: ignore[no-untyped-call]
File "/usr/local/lib/python3.10/dist-packages/google/auth/_default.py", line 739, in default
raise exceptions.DefaultCredentialsError(_CLOUD_SDK_MISSING_CREDENTIALS)
google.auth.exceptions.DefaultCredentialsError: Your default credentials were not found. To set up Application Default Credentials, see https://cloud.google.com/docs/authentication/external/set-up-adc for more information.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/app/app/server/ChatbotAgent/agent_server.py", line 59, in background_run
request_summary = await self.get_conversation_summary(request.user_id)
File "/app/app/server/ChatbotAgent/agent_server.py", line 84, in get_conversation_summary
summary = await self.llm.generate_response(history=[Message(role=Role.USER, content=input_message)], system_prompt=SUMMARY_PROMPT)
File "/app/app/core/llm_interface.py", line 55, in generate_response
raise type(e)(f"Gemini API call failed: {e}")
google.auth.exceptions.DefaultCredentialsError: Gemini API call failed: Your default credentials were not found. To set up Application Default Credentials, see https://cloud.google.com/docs/authentication/external/set-up-adc for more information.
2025-10-23 12:59:28,150 base_events.py [line:1758] ERROR Task exception was never retrieved
future: <Task finished name='Task-3' coro=<LCAgent.background_run() done, defined at /app/app/server/ChatbotAgent/agent_server.py:57> exception=RuntimeError("Failed to load credentials from file /workspace/lc_stylist_agent/request.json: [Errno 2] No such file or directory: '/workspace/lc_stylist_agent/request.json'")>
Traceback (most recent call last):
File "/app/app/core/stylist_agent_server.py", line 38, in __init__
self.credentials = service_account.Credentials.from_service_account_file('/workspace/lc_stylist_agent/request.json')
File "/usr/local/lib/python3.10/dist-packages/google/oauth2/service_account.py", line 264, in from_service_account_file
info, signer = _service_account_info.from_filename(
File "/usr/local/lib/python3.10/dist-packages/google/auth/_service_account_info.py", line 78, in from_filename
with io.open(filename, "r", encoding="utf-8") as json_file:
FileNotFoundError: [Errno 2] No such file or directory: '/workspace/lc_stylist_agent/request.json'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/app/app/server/ChatbotAgent/agent_server.py", line 63, in background_run
recommendation_results = await self.recommend_outfit(request_summary=request_summary,
File "/app/app/server/ChatbotAgent/agent_server.py", line 99, in recommend_outfit
agent = AsyncStylistAgent(**self.stylist_agent_kwages)
File "/app/app/core/stylist_agent_server.py", line 41, in __init__
raise RuntimeError(f"Failed to load credentials from file {'/workspace/lc_stylist_agent/request.json'}: {e}")
RuntimeError: Failed to load credentials from file /workspace/lc_stylist_agent/request.json: [Errno 2] No such file or directory: '/workspace/lc_stylist_agent/request.json'
2025-10-23 13:02:14,806 base_events.py [line:1758] ERROR Task exception was never retrieved
future: <Task finished name='Task-3' coro=<LCAgent.background_run() done, defined at /app/app/server/ChatbotAgent/agent_server.py:57> exception=RuntimeError("Failed to load credentials from file /workspace/lc_stylist_agent/request.json: [Errno 2] No such file or directory: '/workspace/lc_stylist_agent/request.json'")>
Traceback (most recent call last):
File "/app/app/core/stylist_agent_server.py", line 38, in __init__
self.credentials = service_account.Credentials.from_service_account_file('/workspace/lc_stylist_agent/request.json')
File "/usr/local/lib/python3.10/dist-packages/google/oauth2/service_account.py", line 264, in from_service_account_file
info, signer = _service_account_info.from_filename(
File "/usr/local/lib/python3.10/dist-packages/google/auth/_service_account_info.py", line 78, in from_filename
with io.open(filename, "r", encoding="utf-8") as json_file:
FileNotFoundError: [Errno 2] No such file or directory: '/workspace/lc_stylist_agent/request.json'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/app/app/server/ChatbotAgent/agent_server.py", line 63, in background_run
recommendation_results = await self.recommend_outfit(request_summary=request_summary,
File "/app/app/server/ChatbotAgent/agent_server.py", line 99, in recommend_outfit
agent = AsyncStylistAgent(**self.stylist_agent_kwages)
File "/app/app/core/stylist_agent_server.py", line 41, in __init__
raise RuntimeError(f"Failed to load credentials from file {'/workspace/lc_stylist_agent/request.json'}: {e}")
RuntimeError: Failed to load credentials from file /workspace/lc_stylist_agent/request.json: [Errno 2] No such file or directory: '/workspace/lc_stylist_agent/request.json'
2025-10-23 13:04:57,425 agent_server.py [line:73] ERROR ❌ Failed: 'NoneType' object has no attribute 'get'
2025-10-23 13:09:15,866 agent_server.py [line:73] ERROR ❌ Failed: 'NoneType' object has no attribute 'get'
2025-10-24 10:22:29,130 base_events.py [line:1758] ERROR Task exception was never retrieved
future: <Task finished name='Task-3' coro=<LCAgent.background_run() done, defined at /workspace/lc_stylist_agent/app/server/ChatbotAgent/agent_server.py:57> exception=DefaultCredentialsError('Gemini API call failed: Your default credentials were not found. To set up Application Default Credentials, see https://cloud.google.com/docs/authentication/external/set-up-adc for more information.')>
Traceback (most recent call last):
File "/workspace/lc_stylist_agent/app/core/llm_interface.py", line 45, in generate_response
response = await self.gemini_client.aio.models.generate_content(
File "/home/user/miniconda3/envs/lc_stylist_agent/lib/python3.10/site-packages/google/genai/models.py", line 6757, in generate_content
response = await self._generate_content(
File "/home/user/miniconda3/envs/lc_stylist_agent/lib/python3.10/site-packages/google/genai/models.py", line 5592, in _generate_content
response = await self._api_client.async_request(
File "/home/user/miniconda3/envs/lc_stylist_agent/lib/python3.10/site-packages/google/genai/_api_client.py", line 1341, in async_request
result = await self._async_request(
File "/home/user/miniconda3/envs/lc_stylist_agent/lib/python3.10/site-packages/google/genai/_api_client.py", line 1286, in _async_request
return await self._async_retry( # type: ignore[no-any-return]
File "/home/user/miniconda3/envs/lc_stylist_agent/lib/python3.10/site-packages/tenacity/_asyncio.py", line 58, in __call__
do = await self.iter(retry_state=retry_state)
File "/home/user/miniconda3/envs/lc_stylist_agent/lib/python3.10/site-packages/tenacity/_asyncio.py", line 110, in iter
result = await action(retry_state)
File "/home/user/miniconda3/envs/lc_stylist_agent/lib/python3.10/site-packages/tenacity/_asyncio.py", line 78, in inner
return fn(*args, **kwargs)
File "/home/user/miniconda3/envs/lc_stylist_agent/lib/python3.10/site-packages/tenacity/__init__.py", line 410, in exc_check
raise retry_exc.reraise()
File "/home/user/miniconda3/envs/lc_stylist_agent/lib/python3.10/site-packages/tenacity/__init__.py", line 183, in reraise
raise self.last_attempt.result()
File "/home/user/miniconda3/envs/lc_stylist_agent/lib/python3.10/concurrent/futures/_base.py", line 451, in result
return self.__get_result()
File "/home/user/miniconda3/envs/lc_stylist_agent/lib/python3.10/concurrent/futures/_base.py", line 403, in __get_result
raise self._exception
File "/home/user/miniconda3/envs/lc_stylist_agent/lib/python3.10/site-packages/tenacity/_asyncio.py", line 61, in __call__
result = await fn(*args, **kwargs)
File "/home/user/miniconda3/envs/lc_stylist_agent/lib/python3.10/site-packages/google/genai/_api_client.py", line 1153, in _async_request_once
f'Bearer {await self._async_access_token()}'
File "/home/user/miniconda3/envs/lc_stylist_agent/lib/python3.10/site-packages/google/genai/_api_client.py", line 970, in _async_access_token
self._credentials, project = await asyncio.to_thread(
File "/home/user/miniconda3/envs/lc_stylist_agent/lib/python3.10/asyncio/threads.py", line 25, in to_thread
return await loop.run_in_executor(None, func_call)
File "/home/user/miniconda3/envs/lc_stylist_agent/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/home/user/miniconda3/envs/lc_stylist_agent/lib/python3.10/site-packages/google/genai/_api_client.py", line 184, in load_auth
credentials, loaded_project_id = google.auth.default( # type: ignore[no-untyped-call]
File "/home/user/miniconda3/envs/lc_stylist_agent/lib/python3.10/site-packages/google/auth/_default.py", line 739, in default
raise exceptions.DefaultCredentialsError(_CLOUD_SDK_MISSING_CREDENTIALS)
google.auth.exceptions.DefaultCredentialsError: Your default credentials were not found. To set up Application Default Credentials, see https://cloud.google.com/docs/authentication/external/set-up-adc for more information.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/workspace/lc_stylist_agent/app/server/ChatbotAgent/agent_server.py", line 59, in background_run
request_summary = await self.get_conversation_summary(request.user_id)
File "/workspace/lc_stylist_agent/app/server/ChatbotAgent/agent_server.py", line 84, in get_conversation_summary
summary = await self.llm.generate_response(history=[Message(role=Role.USER, content=input_message)], system_prompt=SUMMARY_PROMPT)
File "/workspace/lc_stylist_agent/app/core/llm_interface.py", line 55, in generate_response
raise type(e)(f"Gemini API call failed: {e}")
google.auth.exceptions.DefaultCredentialsError: Gemini API call failed: Your default credentials were not found. To set up Application Default Credentials, see https://cloud.google.com/docs/authentication/external/set-up-adc for more information.
2025-10-24 10:35:44,514 base_events.py [line:1758] ERROR Task exception was never retrieved
future: <Task finished name='Task-3' coro=<LCAgent.background_run() done, defined at /workspace/lc_stylist_agent/app/server/ChatbotAgent/agent_server.py:57> exception=DefaultCredentialsError('Gemini API call failed: Your default credentials were not found. To set up Application Default Credentials, see https://cloud.google.com/docs/authentication/external/set-up-adc for more information.')>
Traceback (most recent call last):
File "/workspace/lc_stylist_agent/app/core/llm_interface.py", line 45, in generate_response
response = await self.gemini_client.aio.models.generate_content(
File "/home/user/miniconda3/envs/test2/lib/python3.10/site-packages/google/genai/models.py", line 6757, in generate_content
response = await self._generate_content(
File "/home/user/miniconda3/envs/test2/lib/python3.10/site-packages/google/genai/models.py", line 5592, in _generate_content
response = await self._api_client.async_request(
File "/home/user/miniconda3/envs/test2/lib/python3.10/site-packages/google/genai/_api_client.py", line 1341, in async_request
result = await self._async_request(
File "/home/user/miniconda3/envs/test2/lib/python3.10/site-packages/google/genai/_api_client.py", line 1286, in _async_request
return await self._async_retry( # type: ignore[no-any-return]
File "/home/user/miniconda3/envs/test2/lib/python3.10/site-packages/tenacity/_asyncio.py", line 58, in __call__
do = await self.iter(retry_state=retry_state)
File "/home/user/miniconda3/envs/test2/lib/python3.10/site-packages/tenacity/_asyncio.py", line 110, in iter
result = await action(retry_state)
File "/home/user/miniconda3/envs/test2/lib/python3.10/site-packages/tenacity/_asyncio.py", line 78, in inner
return fn(*args, **kwargs)
File "/home/user/miniconda3/envs/test2/lib/python3.10/site-packages/tenacity/__init__.py", line 410, in exc_check
raise retry_exc.reraise()
File "/home/user/miniconda3/envs/test2/lib/python3.10/site-packages/tenacity/__init__.py", line 183, in reraise
raise self.last_attempt.result()
File "/home/user/miniconda3/envs/test2/lib/python3.10/concurrent/futures/_base.py", line 451, in result
return self.__get_result()
File "/home/user/miniconda3/envs/test2/lib/python3.10/concurrent/futures/_base.py", line 403, in __get_result
raise self._exception
File "/home/user/miniconda3/envs/test2/lib/python3.10/site-packages/tenacity/_asyncio.py", line 61, in __call__
result = await fn(*args, **kwargs)
File "/home/user/miniconda3/envs/test2/lib/python3.10/site-packages/google/genai/_api_client.py", line 1153, in _async_request_once
f'Bearer {await self._async_access_token()}'
File "/home/user/miniconda3/envs/test2/lib/python3.10/site-packages/google/genai/_api_client.py", line 970, in _async_access_token
self._credentials, project = await asyncio.to_thread(
File "/home/user/miniconda3/envs/test2/lib/python3.10/asyncio/threads.py", line 25, in to_thread
return await loop.run_in_executor(None, func_call)
File "/home/user/miniconda3/envs/test2/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/home/user/miniconda3/envs/test2/lib/python3.10/site-packages/google/genai/_api_client.py", line 184, in load_auth
credentials, loaded_project_id = google.auth.default( # type: ignore[no-untyped-call]
File "/home/user/miniconda3/envs/test2/lib/python3.10/site-packages/google/auth/_default.py", line 739, in default
raise exceptions.DefaultCredentialsError(_CLOUD_SDK_MISSING_CREDENTIALS)
google.auth.exceptions.DefaultCredentialsError: Your default credentials were not found. To set up Application Default Credentials, see https://cloud.google.com/docs/authentication/external/set-up-adc for more information.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/workspace/lc_stylist_agent/app/server/ChatbotAgent/agent_server.py", line 59, in background_run
request_summary = await self.get_conversation_summary(request.user_id)
File "/workspace/lc_stylist_agent/app/server/ChatbotAgent/agent_server.py", line 84, in get_conversation_summary
summary = await self.llm.generate_response(history=[Message(role=Role.USER, content=input_message)], system_prompt=SUMMARY_PROMPT)
File "/workspace/lc_stylist_agent/app/core/llm_interface.py", line 55, in generate_response
raise type(e)(f"Gemini API call failed: {e}")
google.auth.exceptions.DefaultCredentialsError: Gemini API call failed: Your default credentials were not found. To set up Application Default Credentials, see https://cloud.google.com/docs/authentication/external/set-up-adc for more information.