API からデータを取得してイベント ハブに送信する、Azure Function でタイム トリガーを使用する Python コードを作成しました。関数を実行すると、次のエラーが発生します。
System.Private.CoreLib: Exception while executing function: Functions.TimerTrigger. Microsoft.Azure.WebJobs.Host: Error while handling parameter _binder after function returned:. System.Private.CoreLib: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
私の function.json は次のようになります。
{
"scriptFile": "__init__.py",
"bindings": [
{
"name": "mytimer",
"type": "timerTrigger",
"direction": "in",
"schedule": "0 */1 * * * *"
},
{
"type": "eventHub",
"name": "output",
"eventHubName": "eventhub-af-project",
"connection": "myconnection",
"direction": "out"
}
]
}
接続は、私の local.settings.json と、Azure の構成タブで定義されています。管理、送信、リッスンの各権限を持つ接続文字列 - プライマリ キーを使用しました。
見逃したものはありますか?