Posts under category Meta & Facebook

When i am trying to send message via CURL i am getting error

{"meta":{"version":"v2.25.2","api_status":"stable"},"errors":[{"code":1014,"title":"Internal error","details":"Connection refused. Please check if wacore is running: wacore:6250"}] 

i killed containers multiple time but still getting same error, while waweb is working as usual i am able to import certificate and get tokens.

Below is the log of wacore container

I1028 19:34:39.252485    21 main.cpp:36] ---- FieldStats initialization ---- req_id=Main I1028 19:34:39.252826    21 fieldstats.cpp:170] FIELDSTATS: initialized with existing wam file: stream_id = 0, record_count = 144, event_count = 23, size = 1255, create_ts = 1572286537, rotated_size = 0, buffer_sequence_number = 1, dropped_event_count = 0, dropped_event_size = 0 req_id=Main I1028 19:34:39.257371    21 util.cpp:2979] Calling Get Orchestration req_id=Main I1028 19:34:39.257485    21 util.cpp:2998] Calling Get TemplateVersion req_id=Main I1028 19:34:39.258282    22 apiendpointmanager.cpp:167] Endpoint "healthcheck" is listening on address "0.0.0.0" port 6253 req_id=Main I1028 19:34:39.259002    23 apiendpointmanager.cpp:167] Endpoint "control" is listening on address "0.0.0.0" port 6252 req_id=Main I1028 19:34:39.259256    21 main.cpp:41] ---- ConfigStore initialization ---- req_id=Main I1028 19:34:39.259436    21 dbsettings.cpp:103] Changed default database engine from "SQLITE" to "MYSQL" req_id=Main I1028 19:34:39.260638    21 datastore.cpp:677] "create_configStore_139693946207872" connectOption: "MYSQL_OPT_RECONNECT=1;MYSQL_OPT_CONNECT_TIMEOUT=15;MYSQL_OPT_READ_TIMEOUT=30;MYSQL_OPT_WRITE_TIMEOUT=30" req_id=Main I1028 19:34:39.296638    21 datastore.cpp:94] Created database "configStore" req_id=Main I1028 19:34:39.298108    21 datastore.cpp:677] "configStore" connectOption: "MYSQL_OPT_RECONNECT=1;MYSQL_OPT_CONNECT_TIMEOUT=15;MYSQL_OPT_READ_TIMEOUT=30;MYSQL_OPT_WRITE_TIMEOUT=30" req_id=Main I1028 19:34:39.298339    21 datastore.cpp:148] Initiated DB connection "configStore"  of engine type "MYSQL" req_id=Main I1028 19:34:39.344069    21 datastore.cpp:354] Set sql_mode to "NO_AUTO_CREATE_USER,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ENGINE_SUBSTITUTION,ERROR_FOR_DIVISION_BY_ZERO,NO_ZERO_DATE" req_id=Main I1028 19:34:39.345626    21 configstore.cpp:546] Creating cluster info req_id=Main I1028 19:34:39.345705    21 configstore.cpp:1064] App settings does not exist req_id=Main I1028 19:34:39.345715    21 configstore.cpp:857] Creating cluster_info table req_id=Main I1028 19:34:39.350646    21 configstore.cpp:870] cluster_info table created req_id=Main I1028 19:34:39.353032    21 configstore.cpp:1064] App settings does not exist req_id=Main I1028 19:34:39.363816    21 configstore.cpp:202] ConfigStore is initialized successfully req_id=Main I1028 19:34:39.364192    21 mainutil.cpp:473] trying to open log file  "/usr/local/waent/logs/wa-service-4be3d54f-crash.log" req_id=Main I1028 19:34:39.364240    21 main.cpp:324] "---- WhatsApp Service 2.25.2 wa-service Startup ----" req_id=Main I1028 19:34:39.364251    21 main.cpp:327] WhatsApp Account at startup: "" req_id=Main I1028 19:34:39.365712    21 crashloguploader.cpp:46] Crash log uploader upload req_id=Main I1028 19:34:39.365871    21 crashloguploader.cpp:59] uploader sees total files to upload  0 req_id=Main I1028 19:34:39.366093    21 util.cpp:3503] "invalid" should only contain numbers req_id=Main I1028 19:34:39.366130    21 util.cpp:3503] "invalid" should only contain numbers req_id=Main I1028 19:34:39.366142    21 util.cpp:431] Expire jitter adds 388 hours to the expire window req_id=Main W1028 19:34:39.366174    21 util.cpp:461] Missing login credentials: no username req_id=Main E1028 19:34:39.366215    21 chatapp.cpp:191] Aborting normal startup due to missing login credentials req_id=Main I1028 19:34:39.366266    21 chatservice.cpp:479] Unable to initialize the chat application req_id=Main I1028 19:34:39.366282    21 chatapp.cpp:1041] Setting chat state to: ChatState::Type(Disconnected) req_id=Main I1028 19:34:39.366291    21 cryptoprovider.cpp:48] Shutting down crypto provider req_id=Main W1028 19:34:39.366297    21 chatservice.cpp:208] Chat service could not initialize, send SIGHUP to retry req_id=Main I1028 19:34:39.366340    21 main.cpp:340] Chat service started, entering event loop req_id=Main 

It will be great help if someone can guide me the exact problem to resolve.

Following is the configuration which i used. BTW.

wacore: image: docker.whatsapp.biz/coreapp:v${WA_API_VERSION:?Run docker-compose with env var WA_API_VERSION (ex. WA_API_VERSION=2.23.4 docker-compose )} command: ["/opt/whatsapp/bin/wait_on_mysql.sh", "/opt/whatsapp/bin/launch_within_docker.sh"] volumes: - whatsappMedia:/usr/local/wamedia env_file: - db.env environment: # This is the version of the docker templates being used to run WhatsApp Business API WA_RUNNING_ENV_VERSION: v2.2.3 ORCHESTRATION: DOCKER-COMPOSE network_mode: bridge

i want to integrate Whatsapp Business API from facebook business manager.

As per the steps to create WhatsApp account, given in blog (https://www.facebook.com/business/help/2087193751603668?id=2129163877102343)

Steps done by me :

  • First i was created Facebook Business Manager account.
  • Then i was completed business verification in Business Manager.
  • As per above blog , after business verification "Whatsapp Account" option will enabled for me.like this image. (Whatsapp accounts option is enable (option show))
  • Here my business verification verified successfully.but after successfully verification i cant able to show "Whatsapp Accounts" option.like this image (Whatsapp accounts option is not show)

However, I don't see link of "WhatsApp Accounts" in "Accounts" section though my business is verified here. I don't how to proceed ahead without "WhatsApp Accounts" link.

Please guide us for further steps for creating "WhatsApp Accounts" and get the certificate.

What are the restrictions for Whatsapp Business API Groups.

Can I send messages all the time, or are these messages also restricted by the 24hr session time. How many groups can I create, could I e.g. create 100 groups, 1 for every person attending some event?

Is there anywhere I can find the pricing for creating these groups?

I am building a Node.js application that receives messages from WhatsApp via Twilio. Sending text messages is not a problem, but when I try to send the current location from the users WhatsApp account I cannot find the coordinates in the request object sent to the server.

This is what I am doing to see what is being sent to the app from Twilio.

app.post('/incoming', (req, res) => { var incomingMessage = req.body.Body; console.log(incomingMessage); }); 

When I share my current location with the app, the request body is empty.

Can anyone shed any light on this or explain how WhatsApp shares a users location within the app?

Thanks.