Closed GabriellPrado closed 4 months ago
i can't send message :(
I started to recieve Bad Request.
400 - "{\"status\":400,\"error\":\"Bad Request\",\"message\":[\"The \\\"f6a22162-263b-45d1-99e3-84876afc6103\\\" instance does not exist or is not connected\"]}"
in production, but locally works
Hey guys, the only solution I found was to start the API with a cron that restarts it every 6 hours, if it gives this error, it will "correct itself" when restarted. Unfortunately it's not the best way, but it's a solution.
pm2 start 'yarn start' --name WhatsAppAPI --cron-restart="0 */6 * * *"
Sometimes some instances start to return this error:
{ "status": 400, "error": "Bad Request", "message": [ "SessionError: No sessions" ] }
And I am forced to restart the api. Is there any way to definitively resolve this?
Version: 1.2.8 env.yml: