Azure / Azure/azure-sdk-for-python
azure-ai-voicelive: unhandled websocket message type CLOSING results in error
- Lingua principale
- Python
- Stelle
- 5.6k
- Fork
- 3.4k
- Merge medio
- 2g
- PR unite (30g)
- 217
Descrizione
- **Package Name**: azure-ai-voicelive
- **Package Version**: 1.1.0
- **Operating System**: linux
- **Python Version**: 3.12
**Describe the bug**
When integrated in a websocket, voicelive SDK has no logic to manage `CLOSING` as received websocket message type, only `CLOSE` and `CLOSED`. Other Azure service return closing, resulting in websocket errors. `CLOSING` is fairly common so I believe it should be included, specially since this service is made to be integrated in a websocket with others. You can find the relevant code here: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/voicelive/azure-ai-voicelive/azure/ai/voicelive/aio/_patch.py#L523
**To Reproduce**
Steps to reproduce the behavior:
1. Create the websocket
2. Make the other party return CLOSING
3. Results in error
**Expected behavior**
CLOSING message type should not error out. Either needs to be handled or ignored.
**Screenshots**
If applicable, add screenshots to help explain your problem.
**Additional context**
Our session id was: **sess_6Zxvf6tkDngFpn3CwcvbTE**
Please do not hesitate to reach out for more data points. Thank you.
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia in sdk/voicelive/azure-ai-voicelive/azure/ai/voicelive/aio/_patch.py, nella gestione dei messaggi websocket intorno alla riga 523. Riproduci un messaggio CLOSING, se possibile, e traccia come vengono gestiti CLOSE e CLOSED. Il lavoro è completato quando CLOSING viene gestito o ignorato senza produrre un errore websocket.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- python
- Ambito
- api
- Tipo di issue
- Bug
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Stato di attività
- Ferma
- Chiarezza
- Specificata chiaramente
- Idoneità per principianti
- 68/100