mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-08 10:47:42 +02:00
A more proper fix for catch socket lose error (#6036)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
@@ -47,7 +47,7 @@ export function processRequest (
|
||||
context.measure('deserialize', ed - st)
|
||||
handleRequest(context, session, cs, request, workspaceId)
|
||||
} catch (err: any) {
|
||||
if (err.message === 'Data read, but end of buffer not reached 123') {
|
||||
if (((err.message as string) ?? '').includes('Data read, but end of buffer not reached')) {
|
||||
// ignore it
|
||||
} else {
|
||||
throw err
|
||||
|
||||
Reference in New Issue
Block a user