Skip to content

azure-ai-voicelive: unhandled websocket message type CLOSING results in error #45555

@jolerasioo

Description

@jolerasioo
  • 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    AI Voice LiveService AttentionWorkflow: This issue is responsible by Azure service team.customer-reportedIssues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions