跳至内容 跳至搜索

当作业参数设置为不支持的参数类型时引发。我们目前支持 StringIntegerFloatNilClassTrueClassFalseClassBigDecimalSymbolDateTimeDateTimeActiveSupport::TimeWithZoneActiveSupport::DurationHashActiveSupport::HashWithIndifferentAccessArrayRange 或 GlobalID::Identification 实例,尽管可以通过添加自定义序列化器来扩展。如果您为 Hash 设置的键不是字符串或符号,则会引发此错误。尝试序列化无法使用 GlobalID 识别的对象(例如,尚未持久化的 Active Record 模型)时也会引发此错误。