{"record":{"id":"f98e6e97b2ae871c","repo":"langchain-ai/langgraph","slug":"post-v2-deployments-succeeded-but-response-missin","errorCode":null,"errorMessage":"POST /v2/deployments succeeded but response missing a valid 'id'","messagePattern":"POST /v2/deployments succeeded but response missing a valid 'id'","errorType":"error_code","errorClass":"HostBackendError","httpStatus":null,"severity":"error","filePath":"libs/cli/langgraph_cli/deploy.py","lineNumber":654,"sourceCode":"    *,\n    name: str,\n    deployment_type: str,\n    source: str,\n    config_rel: str | None = None,\n    secrets: list[dict[str, str]] | None = None,\n) -> tuple[str, int]:\n    \"\"\"Create a deployment and return its ID and next step number.\"\"\"\n    _log_deploy_step(step, f\"Creating deployment '{name}'\")\n    created = client.create_deployment(\n        name=name,\n        deployment_type=deployment_type,\n        source=source,\n        config_path=config_rel,\n        secrets=secrets,\n    )\n    created_id = created.get(\"id\") if isinstance(created, dict) else None\n    if not isinstance(created_id, str) or not created_id:\n        raise HostBackendError(\n            \"POST /v2/deployments succeeded but response missing a valid 'id'\"\n        )\n    _get_emitter().info(f\"Deployment ID: {created_id}\", deployment_id=created_id)\n    return created_id, step + 1\n\n\ndef _smith_dashboard_base_url(host_url: str | None) -> str:\n    \"\"\"Derive the LangSmith dashboard base URL from the API host URL.\"\"\"\n    from urllib.parse import urlparse\n\n    if not host_url:\n        return \"https://smith.langchain.com\"\n    parsed = urlparse(host_url)\n    hostname = parsed.hostname or \"\"\n    if hostname in (\"localhost\", \"127.0.0.1\"):\n        return host_url.rstrip(\"/\")\n\n    api_host_suffix = \"api.host.langchain.com\"","sourceCodeStart":636,"sourceCodeEnd":672,"githubUrl":"https://github.com/langchain-ai/langgraph/blob/38031739e551638e373fb553453256c23feeb41f/libs/cli/langgraph_cli/deploy.py#L636-L672","documentation":"Error \"POST /v2/deployments succeeded but response missing a valid 'id'\" thrown in langchain-ai/langgraph.","triggerScenarios":"Thrown at libs/cli/langgraph_cli/deploy.py:654 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"38031739e551638e373fb553453256c23feeb41f","analyzedAt":"2026-08-26T18:02:49.312Z","schemaVersion":2},"datasetVersion":"2026-08-26T21:11:00.512Z"}