You should change your error handler to: ``` app.u...
# general
r
You should change your error handler to:
Copy code
app.use((error: any, req: Request, res: Response, next: express.NextFunction) => {
  res.status(error?.statusCode || 500).json({
    success: false,
    error: error?.message || "Server Error",
  });
});
And see if this works.