{"record":{"id":"9b7a36710606f910","repo":"mem0ai/mem0","slug":"invalid-configuration-str-e","errorCode":null,"errorMessage":"Invalid configuration: {str(e)}","messagePattern":"Invalid configuration: (.+?)","errorType":"exception","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"mem0/vector_stores/vertex_ai_vector_search.py","lineNumber":103,"sourceCode":"        except Exception as e:\n            logger.error(\"Failed to initialize Vertex AI: %s\", str(e))\n            raise\n\n        try:\n            # Format the index path properly using the configured index_id\n            index_path = f\"projects/{self.project_number}/locations/{self.region}/indexes/{self.index_id}\"\n            logger.debug(\"Initializing index with path: %s\", index_path)\n            self.index = aiplatform.MatchingEngineIndex(index_name=index_path)\n            logger.debug(\"Index initialized successfully\")\n\n            # Format the endpoint name properly\n            endpoint_name = self.endpoint_id\n            logger.debug(\"Initializing endpoint with name: %s\", endpoint_name)\n            self.index_endpoint = aiplatform.MatchingEngineIndexEndpoint(index_endpoint_name=endpoint_name)\n            logger.debug(\"Endpoint initialized successfully\")\n        except Exception as e:\n            logger.error(\"Failed to initialize Matching Engine components: %s\", str(e))\n            raise ValueError(f\"Invalid configuration: {str(e)}\")\n\n    def _parse_output(self, data: Dict) -> List[OutputData]:\n        \"\"\"\n        Parse the output data.\n        Args:\n            data (Dict): Output data.\n        Returns:\n            List[OutputData]: Parsed output data.\n        \"\"\"\n        results = data.get(\"nearestNeighbors\", {}).get(\"neighbors\", [])\n        output_data = []\n        for result in results:\n            raw_distance = result.get(\"distance\")\n            score = max(0.0, 1.0 - raw_distance) if raw_distance is not None else None\n            output_data.append(\n                OutputData(\n                    id=result.get(\"datapoint\").get(\"datapointId\"),\n                    score=score,","sourceCodeStart":85,"sourceCodeEnd":121,"githubUrl":"https://github.com/mem0ai/mem0/blob/001c235229be8795e3834520467bd0d661ed8f34/mem0/vector_stores/vertex_ai_vector_search.py#L85-L121","documentation":"Error \"Invalid configuration: {str(e)}\" thrown in mem0ai/mem0.","triggerScenarios":"Thrown at mem0/vector_stores/vertex_ai_vector_search.py:103 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Fix the Vertex AI Vector Search configuration values reported in the exception (project, location, index/endpoint IDs)."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"001c235229be8795e3834520467bd0d661ed8f34","analyzedAt":"2026-08-15T01:55:42.685Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}