Cooking the potatoes destroys the bacteria. Eating the potato raw may cause abdominal cramps, diarrhea, fever and an upset stomach. Two toxic chemicals (steroidal glycoalkaloids) solanine and chaconine are naturally present in potatoes and are important components of their resistance against pests and pathogens.