In my case I hadn't wired the RTS pin of the FTDI chip to a capacitor which went to the RST pin of the Arduino Pro Mini. Once I installed this connection, I no longer got the error and I was able to upload code.
Nick Gammon explains this in his forum.
I've added a picture of where/how the capacitor should be placed.
