There has been an error. function: get_metal_from_type(type:)