Operation was interrupted because a client disconnected

Hi Team,

Can you fix the issue?
What is causes "errCode": 279, was generated

errMsg": "Error in $cursor stage :: caused by :: operation was interrupted because a client disconnected",
  "errName": "ClientDisconnect",
  "errCode": 279,
{"t":{"$date":"2023-09-20T11:48:21.945+00:00"},"s":"I",  "c":"COMMAND",  "id":518,   
"ctx":"conn1990250","msg":"Slow query","attr":{"type":"command","ns":"DBO.sample",
"command":{"aggregate":"test","pipeline":[{"$match":{"$and":[{"status":"Open"},{"appDateTime":{"$gte":{"$date":"2023-09-20T11:48:13.031Z"}}},
{"appDateTime":{"$lt":{"$date":"2023-10-20T11:48:13.031Z"}}}]}},{"$group":{"_id":"$storeNumber","totalSlotCount":{"$sum":1},"minSlotDate":
{"$min":"$appDateTime"}}}],"cursor":{},"allowDiskUse":false,"$db":"RAVaccineSchedulerPRODDB","lsid":{"id":{"$uuid":"807d5eb6-4067-4051-a89b-38f06aa1bd86"}}},
"planSummary":"IXSCAN { status: 1, appTime: 1, reservedTime: 1 }",
"numYields":1725,"queryHash":"E2C2E097","planCacheKey":"6DD10207",
"ok":0,"errMsg":"Error in $cursor stage :: caused by :: operation was interrupted because a client disconnected","errName":"ClientDisconnect",
"errCode":279,"reslen":311,"locks":{"FeatureCompatibilityVersion":{"acquireCount":{"r":1782}},"ReplicationStateTransition":{"acquireCount":{"w":1782}},
"Global":{"acquireCount":{"r":1782}},"Database":{"acquireCount":{"r":1781}},"Collection":{"acquireCount":{"r":1781}},"Mutex":{"acquireCount":{"r":57}}},
"protocol":"op_msg","durationMillis":8050}}

Hey @Srihari_Mamidala,

Looking at the log, it appears that your client code or application is terminating abnormally. Could you please share the logs or screenshot that shows what happened on the client or application side?

Additionally, it would be helpful if you could share both the query you executed and the workflow you are following. These additional details can provide insights into the specific events around this issue.

Regards,
Kushagra