Azure / Azure/azure-functions-durable-python

Calling Signal entity HTTP API fails with content-type=application/json

オープン
#346 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
bug fixed-in-v2 P2
主要言語
Python
スター
157
フォーク
70
平均マージ
2日 10時間
マージ済み PR(30日)
2

説明

### Context
In the [http api documentation for signalling a durable entity](https://docs.microsoft.com/en-us/azure/azure-functions/durable/durable-functions-http-api#signal-entity) it is stated that the request content (payload) should be JSON-formatted, implying that the Content-Type should be application/json.
Calling the API using this Content-Type=applicaton/json will throw an error in the get_input() function of the Durable entity context with the error "the JSON object must be str, bytes or bytearray, not dict"

### How to reproduce
Call the API using Content-Type = application/json

### Workaround
Call the API using Content-Type = text/plain

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

まず、Signal entity HTTP API の処理を Durable entity context の get_input() 関数まで追跡し、文書化された Signal entity リクエストと報告された Content-Type の挙動を再現手順として使用します。application/json で JSON ペイロードが受け入れられることを確認しつつ、既存の text/plain の回避策の挙動を維持し、周辺のテストに適切なエントリーポイントがある場合は、両方のリクエスト形式のカバレッジを追加または更新します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
python
領域
api, backend
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
静か
明瞭さ
おおむね明確
初心者へのやさしさ
64/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。