Hi all! I had this exact problem, with the thankyou page throwing a 404 error after checking out. It turned out to be a caching issue.
In my case, Varnish dynamic cache interfered with the thank you page. I tested this by turning off Varnish. Once I did that, the thank you page worked. When I...