puppetlabs/puppet · error · SerializationError
Unable to deserialize type from %{type}
Error message
Unable to deserialize type from %{type} What it means
Error "Unable to deserialize type from %{type}" thrown in puppetlabs/puppet.
Source
Thrown at lib/puppet/pops/serialization/from_data_converter.rb:128
PCORE_TYPE_DEFAULT => proc do |_, _|
build(:default)
end,
PCORE_TYPE_SYMBOL => proc do |hash, _|
build(:"#{hash[PCORE_VALUE_KEY]}")
end,
PCORE_LOCAL_REF_SYMBOL => proc do |hash, _|
build(JsonPath::Resolver.singleton.resolve(@root, hash[PCORE_VALUE_KEY]))
end
}
@pcore_type_procs.default = proc do |hash, type_value|
value = hash.include?(PCORE_VALUE_KEY) ? hash[PCORE_VALUE_KEY] : hash.reject { |key, _| PCORE_TYPE_KEY == key }
if type_value.is_a?(Hash)
type = without_value { convert(type_value) }
if type.is_a?(Hash)
raise SerializationError, _('Unable to deserialize type from %{type}') % { type: type } unless @allow_unresolved
hash
else
pcore_type_hash_to_value(type, value)
end
else
type = Types::TypeParser.singleton.parse(type_value, @loader)
if type.is_a?(Types::PTypeReferenceType)
unless @allow_unresolved
raise SerializationError, _('No implementation mapping found for Puppet Type %{type_name}') % { type_name: type_value }
end
hash
else
# not a string
pcore_type_hash_to_value(type, value)
end
endView on GitHub (pinned to e227c27540)
When it happens
Trigger: Thrown at lib/puppet/pops/serialization/from_data_converter.rb:128 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of puppetlabs/puppet@e227c27540 (2026-08-21).
Data as JSON: /api/errors/a303761f9a87d02e.
Report an issue: GitHub.