arrowhead-f / arrowhead-f/client-library-python

`process_orchestration` reading response with status code 400 raises exception in `response.read_json()`

オープン
#30 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
bug
主要言語
Python
スター
5
フォーク
12
PR マージ指標
30日以内にマージされた PR はありません

説明

Carlos Bocanera Gallardo found that when calling `add_orchestration_rule()`, if the response status code is 400 and the `process_orchestration` function raises an `OrchestrationError`, the `orchestration_response.read_json()` method raises a `RuntimeError`, which makes debugging hard.
The reason for raising the `RuntimeError` is that the `orchestration_response` is not a `"JSON"` response, or at least not a `constants.Payload.JSON` response. I am not sure why this is happening at the moment.

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

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

まず add_orchestration_rule() から process_orchestration() までを追跡し、OrchestrationError が発生する前に orchestration_response.read_json() が 400 レスポンスをどのように処理するかを調べます。レスポンスの型を constants.Payload.JSON と比較し、read_json() が RuntimeError を発生させる理由を特定します。二次的なパース例外なしに元のオーケストレーション失敗を診断できれば完了です。

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

評価

技術スタック
python
領域
api
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
30/100

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

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