Slavery in America seemed to be racially based and limited to people of African decent. Were there specific laws or customs the specified exactly who could be enslaved? Did anybody ever get in trouble for trying to enslave a person of the wrong race?
Slavery in North American was definitely racially based. It started with the indigenous population of Native North Americans, but they were worked so hard and killed in such great numbers that the Spanish soon needed a different source of forced labor. They began to import enslaved Africans to supplement the dwindling numbers of enslaved indigenous people.
Laws that specify what races of people are allowed to be enslaved are difficult to find since they are on the state and local levels, not the federal level, and you have to know what you're looking for and where. They do exist, however, such as California laws from 1850 on (starting with the "Act for the Government and Protection of Indians") that permitted forcing American Indians to produce labor if they had debts that needed to be paid or if they had been arrested for a crime, such as transience or public drunkenness. (Private citizens could arrest people and claim they were vagrants and cause them to be sold at a slave auction.) It was legalized slavery of American Indians in all but name.
The framers of the US constitution explicitly neglected to mention "slavery" in the entire document. Some states would not have joined in the grand experiment if the constitution had restricted slavery, so the constitution itself tacitly allowed slavery until the 14th Amendment.
Finding specific media coverage or legal cases regarding enslaving the "wrong race" might take some serious research to find; if you are interested in history, that might be a gap in the scholarship that you might be able to fill!