Direct method invocation fails with device Not found but works from Azure portal
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 25/100
調査の方向性
azure-iot-hub/samples/iothub_registry_manager_method_sample.py から始め、そのバックエンド構成を報告されている azure-iot-hub 2.6.0 環境と比較します。次に azure-iot-device/samples/async-hub-scenarios/receive_direct_method.py を調べ、記載されたデバイス設定に対して direct-method の呼び出しを再現します。sample と IoTHubRegistryManager モジュールの呼び出しが HTTP 404 を返さなくなり、デバイスがメソッドを受信すれば完了です。
索引モデルが issue の本文から書いたものです。
説明
I have been trying to get the code sample for Direct Method invocation from the samples. I am trying to use this sample for my backend code.
My IOT device is an x64 Virtual Machine on Azure connected to IoT hub using the symmetric keys method in the official documentation. The main.py in the IoT edge module is this code sample from the the repository. The IoT device is running azure-iot-device version 2.9.0 and azure-core 1.20.1. The logs from edgeAgent and edgeHub do not report any connection errors on the IoT device.
I have already seen an older version of the sample working but now I have been trying to get the direct method call sample working, but always get an error:
msrest.exceptions.HttpOperationError: Operation returned an invalid status code 'Not Found'
But, when I try to trigger the direct method from the Azure Portal, it works completely fine and I get the response from the registered method shown on the response section on the portal. It also works from VS Code.
I am using the "iothubowner" Connection string for the direct method invocation (backend code) and the calling machine is a local laptop with a conda environment with azure-iot-hub version 2.6.0 installed. Any module related calls with the IoTHubRegistryManager object (created with iothubowner connection string inside the sample) returns the same error.
On the IoT device side, all connections are okay and the device connection is not showing any errors.
I hope I have provided all the required information and it is completely surprising for me that the code sample that was working until recently does not work anymore. I really appreciate the support.
- 主要言語
- Python
- スター
- 18
- フォーク
- 24
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Azure/azure-iot-hub-python のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
Azure/azure-iot-hub-python#15 · コメント 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
Azure/azure-iot-hub-python#14 · コメント 14 件 · リアクション 13 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 25/100
Azure/azure-iot-hub-python#13 · コメント 2 件 · リアクション 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 25/100
Azure/azure-iot-hub-python の issue をすべて見る
似ている issue
-
Link Checker Reportオープンautomated issue linkchecker report
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
QuantEcon/lecture-python.myst#1098 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
podly-pure-podcasts/podly_pure_podcasts#279 ·
メンテナーはふだん 1 日以内に返信
-
template-proposal
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
OpenShot/openshot-qt#6230 ·
メンテナーはふだん 1 日以内に返信