question

PeterVeselinovi-4099 avatar image
0 Votes"
PeterVeselinovi-4099 asked SandervandeVelde42 answered

Requests toward IoT Hub randomly fails

Our company is working with azure iot hub. Lately we've been experiencing issues with randomly failing connectivity towards IoT Hub.

Errors are the following:

{"level":"warn","code":5,"description":"Connection Refused: Not Authorised","device_id":"dbdea385-0ff0-46e2-ace9-8201c55de980","device_identity":"f6eb58fd-e586-4662-8eb2-90d41b1578b6-ip","device_source_ip":"127.0.0.1","time":1649663538409,"message":"remote server returned error"}
{"level":"error","error":"remote server returned error","device_id":"dbdea385-0ff0-46e2-ace9-8201c55de980","device_identity":"f6eb58fd-e586-4662-8eb2-90d41b1578b6-ip","device_imei":"357213093147386","device_source_ip":"127.0.0.1","time":1649663538409,"message":"error connecting to remote server"}
{"level":"error","error":"EOF","device_id":"dbdea385-0ff0-46e2-ace9-8201c55de980","device_identity":"f6eb58fd-e586-4662-8eb2-90d41b1578b6-ip","device_imei":"357213093147386","device_source_ip":"127.0.0.1","time":1649663546508,"message":"error connecting to remote server"}

{"level":"error","error":"remote server returned error","device_id":"dbdea385-0ff0-46e2-ace9-8201c55de980","device_identity":"c5099925-eb64-4701-a9db-551679fe5909-ip","device_imei":"357213093147386","device_source_ip":"127.0.0.1","time":1649664362100,"message":"error connecting to remote server"}
{"level":"error","error":"EOF","device_id":"dbdea385-0ff0-46e2-ace9-8201c55de980","device_identity":"c5099925-eb64-4701-a9db-551679fe5909-ip","device_imei":"357213093147386","device_source_ip":"127.0.0.1","time":1649664369819,"message":"error connecting to remote server"}
{"level":"warn","code":5,"description":"Connection Refused: Not Authorised","device_id":"dbdea385-0ff0-46e2-ace9-8201c55de980","device_identity":"87d5f785-0fa8-4a37-b1aa-7dd02e9a48b6-ip","device_source_ip":"127.0.0.1","time":1649665088353,"message":"remote server returned error"}

This doesn't happen on every request.

We're using free azure tier with account name gator-iota-hub.

Thanks for response,
Peter Veselinovic

azure-iot-hubazure-iot-centralazure-iot
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

SandervandeVelde42 avatar image
0 Votes"
SandervandeVelde42 answered

Hello @PeterVeselinovi-4099,

the reason for this behavior is not conclusive.

One reason could be you reach the limit of your daily amount of messages the IoT Hub Free tier supports.

This is 8000 chunks of 0.5KB. Be aware, that if you send a message of 0.75KB, it is counted as 2 messages.

Note: This is different from the other tiers which support the chunk size of 4KB.

If this limit is hit, no messages are ingested again for that day until the next day starts.

Please check this limitation. You can also check the IoT Hub metrics to find out which errors occur.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.