I had a problem and was searching for solutions. This exactly is my issue :
As per the OP in that post, he was able to get the code working once he replaced the UNO with a bare board 328P.
But that does not point to any issue … just that he got lucky maybe. Any tips on how this can happen … ? I am actually planning to check with a Mega 2650 and will post back after that.