canove / whaticket-community

A very simple Ticket System based on WhatsApp messages, that allow multi-users in same WhatsApp account.
MIT License
1.55k stars 795 forks source link

I'm getting this error sometimes into my backend #501

Closed AdrianoRobson closed 1 year ago

AdrianoRobson commented 1 year ago

Anyone else here experiencing this problem? It's just the application having a medium traffic of messages that gives this error:

tcp_wrap.cc:155:static void node::TCPWrap::New(const v8::FunctionCallbackInfo&): Assertion `args[0]->IsInt32()' failed.

error_node

Node version: v16.13.1

pm2 version: 5.2.0

OS version: VERSION="18.04.6 LTS UBUNTU

server.ts

import gracefulShutdown from "http-graceful-shutdown";
import app from "./app";
import { initIO } from "./libs/socket";
import { logger } from "./utils/logger";
import { StartAllWhatsAppsSessions } from "./services/WbotServices/StartAllWhatsAppsSessions";

const server = app.listen(process.env.PORT, () => {
  logger.info(`Server started on port: ${process.env.PORT}`);
}); 

initIO(server);
StartAllWhatsAppsSessions();
gracefulShutdown(server);
stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.