gpt4 book ai didi

docker - WhatsApp业务API-连接被拒绝。请检查wacore是否正在运行:wacore:6250

转载 作者:行者123 更新时间:2023-12-02 19:55:02 25 4
gpt4 key购买 nike

当我尝试通过CURL发送消息时出现错误

{"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"}]

我多次杀死了容器,但是仍然遇到相同的错误,而waweb照常工作时,我能够导入证书并获得 token 。

以下是wacore容器的日志
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

如果有人可以指导我解决确切的问题,那将是很大的帮助。

以下是我使用的配置。顺便说一句。

wacore:
图像:docker.whatsapp.biz/coreapp:v${WA_API_VERSION :?运行带有env var WA_API_VERSION的docker-compose(例如WA_API_VERSION = 2.23.4 docker-compose)}
命令:[“/ opt / whatsapp / bin / wait_on_mysql.sh”,“/ opt / whatsapp / bin / launch_within_docker.sh”]
数量:
-whatsappMedia:/ usr / local / wamedia
env_file:
-db.env
环境:
#这是用于运行WhatsApp Business API的docker模板的版本
WA_RUNNING_ENV_VERSION:v2.2.3
编排:DOCKER-COMPOSE
network_mode:网桥

最佳答案

停止服务,然后重新启动它们。这为我解决了。另外,不要忘记设置环境变量WA_API_VERSION=2.29.1
请注意:版本号是您正在使用的当前版本号。根据Facebook,您需要在2020年8月29日之前升级到2.29.1版本。有关详细信息,请引用installation guide

关于docker - WhatsApp业务API-连接被拒绝。请检查wacore是否正在运行:wacore:6250,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58597545/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com