The only times I ever had tummy upsets was when we lived in BKK for a year or so a decade ago. With the sewers you can smell just a metre beneath the street, and occasional large rats scurrying around, I eventually made the connection and stopped eating street food in Bangers.
Never had a problem since then, including with street food here in Isaan.