{"record":{"id":"ebd8571f53983130","repo":"langchain-ai/langgraph","slug":"request-failed-attempting-reconnect-to-location-ebd857","errorCode":null,"errorMessage":"Request failed, attempting reconnect to Location: {loc}","messagePattern":"Request failed, attempting reconnect to Location: (.+?)","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"libs/sdk-py/langgraph_sdk/_sync/http.py","lineNumber":174,"sourceCode":"            if on_response:\n                on_response(r)\n            try:\n                r.raise_for_status()\n            except httpx.HTTPStatusError as e:\n                body = r.read().decode()\n                if sys.version_info >= (3, 11):\n                    e.add_note(body)\n                else:\n                    logger.error(f\"Error from langgraph-api: {body}\", exc_info=e)\n                raise e\n            loc = r.headers.get(\"location\")\n            if reconnect_limit <= 0 or not loc:\n                return _decode_json(r)\n            _validate_reconnect_location(self.client.base_url, loc)\n            try:\n                return _decode_json(r)\n            except httpx.HTTPError:\n                warnings.warn(\n                    f\"Request failed, attempting reconnect to Location: {loc}\",\n                    stacklevel=2,\n                )\n                r.close()\n                return self.request_reconnect(\n                    loc,\n                    \"GET\",\n                    headers=request_headers,\n                    # don't pass on_response so it's only called once\n                    reconnect_limit=reconnect_limit - 1,\n                )\n\n    def stream(\n        self,\n        path: str,\n        method: str,\n        *,\n        json: dict[str, Any] | None = None,","sourceCodeStart":156,"sourceCodeEnd":192,"githubUrl":"https://github.com/langchain-ai/langgraph/blob/38031739e551638e373fb553453256c23feeb41f/libs/sdk-py/langgraph_sdk/_sync/http.py#L156-L192","documentation":"Error \"Request failed, attempting reconnect to Location: {loc}\" thrown in langchain-ai/langgraph.","triggerScenarios":"Thrown at libs/sdk-py/langgraph_sdk/_sync/http.py:174 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"}