I don't get the 10K in the drawing? The specification for the diode portion of your opto coupler is typical 1.7 Volts Vf at 10 mA If, so 5 - 1.7 = 3.3 / .010 = 330 Ohms so a 330 Ohm resistor would be normally used for 5 volts and not 10K Ohm? I don't get that part. Anyway if you have 1.7 volts and a 1.7 volt forward voltage in theory you don't need a resistor in there but I would try a 10 ohm or 33 ohm simply for the sake of some current limiting. That or try 1 K as suggested and work down.
Ron