BerriAI/litellm · error · Exception
Error fetching prompt version '{prompt_version_id}': {e}
Error message
Error fetching prompt version '{prompt_version_id}': {e} What it means
Error "Error fetching prompt version '{prompt_version_id}': {e}" thrown in BerriAI/litellm.
Source
Thrown at litellm/integrations/arize/arize_phoenix_client.py:92
data: Final = response.json()
return data.get("data")
except Exception as e:
# Check if it's an HTTP error
response = getattr(e, "response", None)
if response is not None and hasattr(response, "status_code"):
if response.status_code == 404:
return None
elif response.status_code == 403:
raise Exception(
f"Access denied to prompt version '{prompt_version_id}'. Check your Arize Phoenix permissions."
)
elif response.status_code == 401:
raise Exception("Authentication failed. Check your Arize Phoenix API key and permissions.")
else:
raise Exception(f"Failed to fetch prompt version '{prompt_version_id}': {e}")
else:
raise Exception(f"Error fetching prompt version '{prompt_version_id}': {e}")
def test_connection(self) -> bool:
"""
Test the connection to the Arize Phoenix API.
Returns:
True if connection is successful, False otherwise
"""
try:
# Try to access the prompt_versions endpoint to test connection
url: Final = f"{self.api_base}/prompt_versions"
response: Final = self.http_handler.client.get(url, headers=self.headers)
response.raise_for_status()
return True
except Exception:
return False
def close(self):View on GitHub (pinned to 6c2dcb801b)
Solutions
- Check network connectivity and Phoenix server status; verify prompt_version_id.
When it happens
Trigger: Thrown at litellm/integrations/arize/arize_phoenix_client.py:92 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of BerriAI/litellm@6c2dcb801b (2026-08-15).
Data as JSON: /api/errors/8cc4b95f342ac2da.
Report an issue: GitHub.