Azure / Azure/azure-functions-durable-python
Calling Signal entity HTTP API fails with content-type=application/json
- Lenguaje dominante
- Python
- Estrellas
- 157
- Forks
- 70
- Merge medio
- 2 d 10 h
- PR fusionados (30 d)
- 2
Descripción
### 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
Guía de contribución
Línea de trabajo
Empieza rastreando el manejo de la Signal entity HTTP API hasta la función get_input() del Durable entity context, utilizando como reproducción la solicitud de Signal entity documentada y el comportamiento de Content-Type reportado. Verifica que la carga útil JSON se acepte con application/json, manteniendo al mismo tiempo el comportamiento existente del workaround con text/plain, y añade o actualiza la cobertura para ambas formas de solicitud si las pruebas circundantes ofrecen un punto de entrada adecuado.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- python
- Área
- api, backend
- Tipo de issue
- Error
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Tranquilo
- Claridad
- Bastante claro
- Aptitud para principiantes
- 64/100