GlobalEvent websocket closed with reason code as 1011

Hello Everyone,

We are using Global Events addon for sending an event from Core to Web module.
We have experienced a scenario where the web socket for global events is closed and unable to receive an event in Web module.

Below are some logs:

2021-02-08 15:30:55.371 INFO [default task-3392/app-core/admin] com.haulmont.addon.globalevents.core.WebSocketServer - Closed session WebSocketServerSockJsSession[id=e32b4a82248e40649f221e6e686f4ec6] with status CloseStatus[code=1011, reason=]

2021-02-08 15:30:55,387 INFO [com.haulmont.addon.globalevents.transport.AbstractWebSocketClient] (default I/O-2) Closed WebSocketClientSockJsSession[id='e32b4a82248e40649f221e6e686f4ec6, url=http://localhost:8080/app-core/cubaglevt-ws/handler]

We would like to understand why the socket related to global events is closed.
Below are the version details of platform and add-on.

Platfrom: 7.0.12
Global Event: 0.4.2

Please help us in resolving the issue. TIA

Hi,

According to the status code Javadocs:

/**
 * "1011 indicates that a server is terminating the connection because it encountered
 * an unexpected condition that prevented it from fulfilling the request."
 */
public static final CloseStatus SERVER_ERROR = new CloseStatus(1011);

it can be an exception that occurred when handling the request. Check your logs for related errors.

Hi @krivopustov,

Thanks for the reply.
We are observing socket close issue frequently. As the socket is closed while sending an event this is causing an issue. Is there any retry mechanism in Global Events add-on?
Do we need to enable any logs in order to see the errors that happens while sending an events?