"...should be of type object, but was actually string" <~ will get around both translation and grammatical issues.