arrowhead-f / arrowhead-f/client-library-python
`process_orchestration` reading response with status code 400 raises exception in `response.read_json()`
- Vorherrschende Sprache
- Python
- Sterne
- 5
- Forks
- 12
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
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.
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Rechercherichtung
Beginne damit, add_orchestration_rule() bis zu process_orchestration() nachzuverfolgen und zu untersuchen, wie orchestration_response.read_json() eine 400-Antwort verarbeitet, bevor OrchestrationError ausgelöst wird. Vergleiche den Antworttyp mit constants.Payload.JSON und ermittle, warum read_json() RuntimeError auslöst; fertig ist es, wenn der ursprüngliche Orchestrierungsfehler ohne eine sekundäre Parsing-Ausnahme diagnostiziert werden kann.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- python
- Bereich
- api
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 30/100