There was a politico article recently showing that most people in the US government were aware that Vietnam was going to be a quagmire, but couldn't figure out a viable diplomatic solution that would keep America out while maintaining its international prestige and interests. The US went into Vietnam fully aware it was going to be a mess.