i had the same problem, i just simply pulled it out of circuit and then retried, turns out on of the pins on my d1 mini were high, for context i used D1, D2, D5 and D6 of the esp8266 di mini.