runtime error
Exit code: 1. Reason: Calculating embeddings: 0%| | 0/1 [00:00<?, ?it/s][A Calculating embeddings: 0%| | 0/1 [00:00<?, ?it/s] Traceback (most recent call last): File "/home/user/app/app.py", line 58, in <module> indexing_pipe.run({"doc_embedder": {"documents": documents}}) File "/usr/local/lib/python3.10/site-packages/haystack/core/pipeline/pipeline.py", line 197, in run res = comp.run(**last_inputs[name]) File "/usr/local/lib/python3.10/site-packages/haystack/components/embedders/openai_document_embedder.py", line 222, in run embeddings, meta = self._embed_batch(texts_to_embed=texts_to_embed, batch_size=self.batch_size) File "/usr/local/lib/python3.10/site-packages/haystack/components/embedders/openai_document_embedder.py", line 187, in _embed_batch response = self.client.embeddings.create(model=self.model, input=batch) File "/usr/local/lib/python3.10/site-packages/openai/resources/embeddings.py", line 114, in create return self._post( File "/usr/local/lib/python3.10/site-packages/openai/_base_client.py", line 1250, in post return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) File "/usr/local/lib/python3.10/site-packages/openai/_base_client.py", line 931, in request return self._request( File "/usr/local/lib/python3.10/site-packages/openai/_base_client.py", line 1030, in _request raise self._make_status_error_from_response(err.response) from None openai.AuthenticationError: Error code: 401 - {'error': {'message': 'Incorrect API key provided: sk-URWD8***************************************mZ2X. You can find your API key at https://platform.openai.com/account/api-keys.', 'type': 'invalid_request_error', 'param': None, 'code': 'invalid_api_key'}} During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/user/app/app.py", line 91, in <module> print("An error occurred: \n" + error_message) NameError: name 'error_message' is not defined
Container logs:
Fetching error logs...