The type of the value associated with the key "duration" must be of type integer.