IoTHub error when receiving messages on device

Damir Dobric Posts

Next talks:



Follow me on Twitter: #ddobric




When invoking Receive method on deice side, you might get following error:

{"Http Protocol does not support a non-zero receive timeout\r\nParameter name: timeout"}

This is typically caused by explicitly specifying timeout parameter. Because implementation of HttpTransport does not support timeout.

      var msg = await m_DeviceClient.ReceiveAsync(TimeSpan.FromMilliseconds(timeout));

To fix the problem, do not specify timeout parameter or set it to zero

var msg = await m_DeviceClient.ReceiveAsync(TimeSpan.FromMilliseconds());

Posted Mar 28 2016, 07:39 AM by Damir Dobric is a .Net Community Blog powered by daenet GmbH.