{"record":{"id":"47a46e3a006be0a8","repo":"langchain-ai/langgraph","slug":"async-client-is-not-initialized-please-provide-u","errorCode":null,"errorMessage":"Async client is not initialized: please provide `url` or `client` when initializing `RemoteGraph`.","messagePattern":"Async client is not initialized: please provide `url` or `client` when initializing `RemoteGraph`\\.","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"libs/langgraph/langgraph/pregel/remote.py","lineNumber":183,"sourceCode":"        self.assistant_id = assistant_id\n        if name is None:\n            self.name = assistant_id\n        else:\n            self.name = name\n        self.config = config\n        self.distributed_tracing = distributed_tracing\n\n        if client is None and url is not None:\n            client = get_client(url=url, api_key=api_key, headers=headers)\n        self.client = client\n\n        if sync_client is None and url is not None:\n            sync_client = get_sync_client(url=url, api_key=api_key, headers=headers)\n        self.sync_client = sync_client\n\n    def _validate_client(self) -> LangGraphClient:\n        if self.client is None:\n            raise ValueError(\n                \"Async client is not initialized: please provide `url` or `client` when initializing `RemoteGraph`.\"\n            )\n        return self.client\n\n    def _validate_sync_client(self) -> SyncLangGraphClient:\n        if self.sync_client is None:\n            raise ValueError(\n                \"Sync client is not initialized: please provide `url` or `sync_client` when initializing `RemoteGraph`.\"\n            )\n        return self.sync_client\n\n    def _reject_v3_unsupported(\n        self,\n        *,\n        control: Any,\n        transformers: Any,\n        interrupt_before: Any,\n        interrupt_after: Any,","sourceCodeStart":165,"sourceCodeEnd":201,"githubUrl":"https://github.com/langchain-ai/langgraph/blob/38031739e551638e373fb553453256c23feeb41f/libs/langgraph/langgraph/pregel/remote.py#L165-L201","documentation":"Error \"Async client is not initialized: please provide `url` or `client` when initializing `RemoteGraph`.\" thrown in langchain-ai/langgraph.","triggerScenarios":"Thrown at libs/langgraph/langgraph/pregel/remote.py:183 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"}