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

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

Abierto
#30 0 comentarios 0 reacciones 0 asignados Ver en GitHub
bug
Lenguaje dominante
Python
Estrellas
5
Forks
12
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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.

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Línea de trabajo

Empieza por seguir add_orchestration_rule() hasta process_orchestration() e inspeccionar cómo orchestration_response.read_json() gestiona una respuesta 400 antes de que se lance OrchestrationError. Compara el tipo de respuesta con constants.Payload.JSON y determina por qué read_json() lanza RuntimeError; se considera terminado cuando el fallo de orquestación original puede diagnosticarse sin una excepción secundaria de análisis.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
python
Área
api
Tipo de issue
Error
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Estancado
Claridad
Necesita aclaración
Aptitud para principiantes
30/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.