president buchanan ordered 280 officers and men to land in canton , china during hostilities between the british and chinese and after an unprovoked attack on an unarmed boat displaying the american flag .