mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-17 13:54:11 +00:00
A more proper fix for catch socket lose error (#6036)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
parent
5d948fe3a7
commit
097c9d97fb
@ -47,7 +47,7 @@ export function processRequest (
|
|||||||
context.measure('deserialize', ed - st)
|
context.measure('deserialize', ed - st)
|
||||||
handleRequest(context, session, cs, request, workspaceId)
|
handleRequest(context, session, cs, request, workspaceId)
|
||||||
} catch (err: any) {
|
} 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
|
// ignore it
|
||||||
} else {
|
} else {
|
||||||
throw err
|
throw err
|
||||||
|
Loading…
Reference in New Issue
Block a user