Sample project: EventsAndStateWebSocketApiPython
I successfully ran the sample project, and the application correctly listed the events and states initially. However, after closing and restarting the application a few times, it eventually stopped working and displayed a WebSocket connection error.
Please help me resolve this issue. I have attached the screenshots, event server log, Milestone version, and Windows system version for reference.
Milestone XProtect Version: ( Trail Version)
{
“ProductVersion”: “23.3.58.1”,
“UnsecureManagementServer”: “http://desktop-58imlaa/”,
“SecureManagementServer”: “https://desktop-58imlaa/”,
“IdentityProvider”: “http://desktop-58imlaa/IDP”,
“ApiGateways”: [
"[http://desktop-58imlaa/API/](http://desktop-58imlaa/API/ "http://desktop-58imlaa/API/")"
]
}
Windows Version: Windows 11
Topic:
Link: https://doc.developer.milestonesys.com/mipvmsapi/api/events-ws/v1/
Note:
If try to restart the Milestone’s events server then the sample application started working fine. How to fix this problem programmatically without re-starting the events server.
Attachments
Version
Start of the applicationConnection Error
Event Logs:



