{"record":{"id":"8149017f1307740f","repo":"langchain-ai/langgraph","slug":"path-parameter-must-not-be-none","errorCode":null,"errorMessage":"path parameter must not be None","messagePattern":"path parameter must not be None","errorType":"exception","errorClass":"TypeError","httpStatus":null,"severity":"error","filePath":"libs/sdk-py/langgraph_sdk/_shared/utilities.py","lineNumber":221,"sourceCode":"\n    Path segments are encoded with ``safe=\"\"`` so that ``/`` and other reserved\n    characters are escaped. Standalone dot-segments (``.`` and ``..``) are also\n    encoded because some URL-handling stacks (including ``httpx``) collapse\n    them client-side as relative-path traversal before transmission. The value\n    is coerced to ``str`` so callers can pass ``uuid.UUID`` and similar types\n    directly without changing call sites.\n\n    A properly formed identifier (for example, a standard UUID, which contains\n    no dots or reserved characters) round-trips through this function\n    unchanged.\n\n    Raises:\n        TypeError: If `value` is `None` or a `bytes`/`bytearray` instance.\n            Coercing those would produce misleading paths (e.g. `/threads/None`),\n            so surface the caller bug instead.\n    \"\"\"\n    if value is None:\n        raise TypeError(\"path parameter must not be None\")\n    if isinstance(value, (bytes, bytearray)):\n        raise TypeError(\"path parameter must not be bytes; pass a str or uuid.UUID\")\n    quoted = quote(str(value), safe=\"\")\n    # Bare \".\" or \"..\" (or any all-dot string) acts as a relative-path segment\n    # that some HTTP stacks (including ``httpx``) collapse client-side before\n    # transmission. Encode the dots so the segment becomes opaque to that\n    # logic. Mixed values like \"agent.v1\" are unaffected.\n    if quoted and all(c == \".\" for c in quoted):\n        quoted = \"%2E\" * len(quoted)\n    return quoted\n\n\n_registered_transports: list[httpx.ASGITransport] = []\n\n\n# Do not move; this is used in the server.\ndef configure_loopback_transports(app: Any) -> None:\n    for transport in _registered_transports:","sourceCodeStart":203,"sourceCodeEnd":239,"githubUrl":"https://github.com/langchain-ai/langgraph/blob/38031739e551638e373fb553453256c23feeb41f/libs/sdk-py/langgraph_sdk/_shared/utilities.py#L203-L239","documentation":"Error \"path parameter must not be None\" thrown in langchain-ai/langgraph.","triggerScenarios":"Thrown at libs/sdk-py/langgraph_sdk/_shared/utilities.py:221 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"}