sqlmapproject/sqlmap · error · ValueError
unsupported serialized structure of type
Error message
unsupported serialized structure of type '%s'
What it means
Structural guard at the end of _serializeDecode(): the object being decoded is not a tagged {_SERIALIZE_TAG: ...} mapping at all (wrong top-level type), so it does not conform to the serialization protocol and cannot be decoded.
Solutions
- Discard and regenerate the serialized/session data with --flush-session
- Ensure the session store was not hand-edited or truncated
- Verify both ends run the same sqlmap version when sharing data
Defensive patterns
Strategy: type-guard
When it happens
Trigger: Thrown at lib/core/convert.py:223 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of sqlmapproject/sqlmap@0a35b20e39 (2026-08-26).
Data as JSON: /api/errors/3fa58537b1451d96.
Report an issue: GitHub.
Appendix: source
Thrown at lib/core/convert.py:223
return dict((_serializeDecode(k), _serializeDecode(v)) for (k, v) in struct["v"])
elif tag == "dec":
return decimal.Decimal(struct["v"])
elif tag == "dt":
return datetime.datetime(*struct["v"])
elif tag == "date":
return datetime.date(*struct["v"])
elif tag == "time":
return datetime.time(*struct["v"])
elif tag == "td":
return datetime.timedelta(struct["v"][0], struct["v"][1], struct["v"][2])
elif tag == "o":
return _serializeDecodeObject(struct)
elif tag is None: # defensive - a bare mapping should never occur
return dict((_serializeDecode(k), _serializeDecode(v)) for (k, v) in struct.items())
else:
raise ValueError("unsupported serialized tag '%s'" % tag)
raise ValueError("unsupported serialized structure of type '%s'" % type(struct))
def _serializeResolveClass(name):
"""
Resolves an allowlisted class name to its class (nothing else may be reconstructed)
"""
if name not in _SERIALIZE_CLASSES:
raise ValueError("deserialization of class '%s' is forbidden" % name)
if name == "lib.utils.har.RawPair":
from lib.utils.har import RawPair
return RawPair
else:
from lib.core.datatype import AttribDict, InjectionDict
return InjectionDict if name.endswith("InjectionDict") else AttribDict
def _serializeDecodeObject(struct):
"""View on GitHub (pinned to 0a35b20e39)