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

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

Ouverte
#30 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
bug
Langage dominant
Python
Étoiles
5
Forks
12
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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.

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Piste de recherche

Commencez par suivre add_orchestration_rule() jusqu’à process_orchestration() et examinez comment orchestration_response.read_json() gère une réponse 400 avant que OrchestrationError ne soit levée. Comparez le type de réponse avec constants.Payload.JSON et déterminez pourquoi read_json() lève RuntimeError ; le travail est terminé lorsque l’échec d’orchestration d’origine peut être diagnostiqué sans exception d’analyse secondaire.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
python
Domaine
api
Type d'issue
Bug
Difficulté
4/5
Temps estimé
3-5 jours
Activité
À l'abandon
Clarté
À clarifier
Accessibilité débutants
30/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.