Azure Function stops receiving a call from IoT Hub

I have an IoTHub and Function app containing a function (EventHubTrigger C #).

I see that IoTHub is getting approx. 6 messages from my device per hour - and the function gets called and stores the data in the database. The function calls execution time from 15ms to 60ms. (Actually 15-60ms during the test, now when I look closer to the call log it tends to be over 70-140ms.)

My problem is that the function stops getting called after a while. This happened a couple of times. Today it lasted approx. 10 hours and then the function is no longer called. Messages are still being received in IoThub.

I can call the function manually using the test data and it works correctly. But it hasn't been called from IoTHub yet.

The plan I'm launching is Pay As You Go - NorthEuropePlan (Consumption).

Any suggestions?

IoTHub messages are coming

Suddenly the function stops being called

+3


source to share


1 answer


10 hours and then the function is no longer called. Messages are still being received in IoThub.

Here is a similar problem , as per paulbatums answer, if the connection string contains EntityPath, which might cause the problem. Check if your connection string contains EntityPath.



If possible, you can try to create a new Azure Function with the same code logic to see if the same issue appears. And you can try using the App Service plan (and enable the Always On option) to see if it helps resolve the issue.

+1


source







All Articles