JSPrintManager icon indicating copy to clipboard operation
JSPrintManager copied to clipboard

Uncaught error

Open jwr opened this issue 2 months ago • 0 comments

I log client errors server-side. After adding JSPrintManager, logs are filled with

Uncaught exception : Event type='error' (target: WebSocket, currentTarget: WebSocket) | {"isTrusted" true, "type" "error", "target" #object[WebSocket [object WebSocket]], "currentTarget" #object[WebSocket [object WebSocket]]}

logged every second for every client.

I can't pinpoint the exact cause, but I am sure JSPrintManager is to blame, as setting auto_reconnect to false makes the errors disappear. Also, the errors appear only if JSPrintManager client app is not installed or not running.

This seems related to #39.

Please make sure errors are caught and handled, otherwise this causes problems down the road. With server-side logging of client errors, and thousands of clients, this quickly grows into a huge issue.

jwr avatar Oct 04 '25 11:10 jwr