LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • Client
  • AsyncClient
  • Run Helpers
  • Run Trees
  • Evaluation
  • Schemas
  • Utilities
  • Wrappers
  • Anonymizer
  • Testing
  • Expect API
  • Middleware
  • Pytest Plugin
  • Deployment SDK
⌘I

LangChain Assistant

Ask a question to get started

Enter to send•Shift+Enter new line

Menu

OverviewClientAsyncClientRun HelpersRun TreesEvaluationSchemasUtilitiesWrappersAnonymizerTestingExpect APIMiddlewarePytest PluginDeployment SDK
Language
Theme
Pythonlangsmithsandbox_helpersraise_if_not_ready
Function●Since v0.12

raise_if_not_ready

Copy
raise_if_not_ready(
    error: httpx.HTTPStatusError,
    name: str,
) -> None
View source on GitHub

Raise SandboxNotReadyError when the API rejected a proxy-config update.

A proxy config can only be written to a ready sandbox, and that status check is the sole source of InvalidRequest on the update endpoint for the fields this client sends — a typed error lets callers start the sandbox and retry instead of matching on status codes.