Nitesh Kumar
Nitesh Kumar

Reputation: 63

Whatsapp Business Api gives error when accessing their apis

I am working on Whatsapp Business API. When i am trying to access the API, it shows me an error with

"details": "Connection refused. Please check if wacore is running."

Any help to solve it. This is my Docker Whatsapp container running

This is Postman api post

Upvotes: 1

Views: 2914

Answers (2)

riyadhalnur
riyadhalnur

Reputation: 404

From my experience setting up the servers on AWS, there are 2 things that cause this error message to be returned.

  1. The current cloud formation template has a bug, maybe, that doesn't add the DB password to the environment variables for the container images. Adding it manually and re-deploying fixes the issue.
  2. The phone number you will be using for the business account, added on WhatsApp manager, needs to be registered with your instance with WhatsApp servers.

Upvotes: 0

Weiyan Wang
Weiyan Wang

Reputation: 176

This usually means your waweb is running but your wacore container is not running or you somehow restart the wacore container.

You could run

docker ps -a

To find out the wacore container And run

Docker logs containerid

to see the logs , if you could grab the logs I could see why wacore is down for you

shutdown and restart normally will help

docker-compose down 
 docker-compose up -d

Upvotes: 0

Related Questions