简体   繁体   中英

The listener for function 'IotHubTrigger' was unable to start. IoTHub

I've been working on a azure functions project for almost a year now. Suddenly last week i started to get this error message from my IoTHubTrigger:

The listener for function 'IotHubTrigger' was unable to start. Microsoft.Azure.EventHubs.Processor: Out of retries creating lease for partition 0. Microsoft.WindowsAzure.Storage: The response ended prematurely, with at least 158 additional bytes expected. System.Net.Http: The response ended prematurely, with at least 158 additional bytes expected.

Have not found anywhere where someone has the same problem as this, someone who knows what the error is due to? The only major change the last weeks is that i went from VS 2019 to VS 2022, can it be that?

Also added "AzureWebJobsSecretStorageType": "files", to the local.settings.json file.

I'm thankful for any kind of help with this! Cheers!

I managed to solve the problem, in AzureStorageExplorer under local/Emulator/blobcontainer/azure-webjobs-eventhub & host, removed everything that had to do with iothub/eventhub, and did a restart on the computer and boom so it started to work again.

Thanks to the people who left a comment!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM