runtime error
Exit code: 1. Reason: ry_target _retry_error_helper( File "/usr/local/lib/python3.10/site-packages/google/api_core/retry/retry_base.py", line 212, in _retry_error_helper raise final_exc from source_exc File "/usr/local/lib/python3.10/site-packages/google/api_core/retry/retry_unary.py", line 144, in retry_target result = target() File "/usr/local/lib/python3.10/site-packages/google/api_core/timeout.py", line 120, in func_with_timeout return func(*args, **kwargs) File "/usr/local/lib/python3.10/site-packages/google/api_core/grpc_helpers.py", line 78, in error_remapped_callable raise exceptions.from_grpc_error(exc) from exc google.api_core.exceptions.InvalidArgument: 400 API key not valid. Please pass a valid API key. [reason: "API_KEY_INVALID" domain: "googleapis.com" metadata { key: "service" value: "generativelanguage.googleapis.com" } ] The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/user/app/app.py", line 30, in <module> vectordb = Chroma.from_documents(pages, embeddings) File "/usr/local/lib/python3.10/site-packages/langchain_community/vectorstores/chroma.py", line 878, in from_documents return cls.from_texts( File "/usr/local/lib/python3.10/site-packages/langchain_community/vectorstores/chroma.py", line 842, in from_texts chroma_collection.add_texts(texts=texts, metadatas=metadatas, ids=ids) File "/usr/local/lib/python3.10/site-packages/langchain_community/vectorstores/chroma.py", line 277, in add_texts embeddings = self._embedding_function.embed_documents(texts) File "/usr/local/lib/python3.10/site-packages/langchain_google_genai/embeddings.py", line 229, in embed_documents raise GoogleGenerativeAIError(f"Error embedding content: {e}") from e langchain_google_genai._common.GoogleGenerativeAIError: Error embedding content: 400 API key not valid. Please pass a valid API key. [reason: "API_KEY_INVALID" domain: "googleapis.com" metadata { key: "service" value: "generativelanguage.googleapis.com" } ]
Container logs:
Fetching error logs...