[2024-09-28T14:48:39.506] [INFO] - starting fetching api: http://localhost:3000/receive/
[2024-09-28T14:48:39.515] [ERROR] - Error occurred when trying to send Data to RecvdApi FetchError: request to http://localhost:3000/receive/ failed, reason: connect ECONNREFUSED ::1:3000
at ClientRequest. (/app/node_modules/.pnpm/node-fetch-commonjs@3.3.2/node_modules/node-fetch-commonjs/index.js:2223:11)
at ClientRequest.emit (node:events:529:35)
at Socket.socketErrorListener (node:_http_client:501:9)
at Socket.emit (node:events:517:28)
at emitErrorNT (node:internal/streams/destroy:151:8)
at emitErrorCloseNT (node:internal/streams/destroy:116:3)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
type: 'system',
errno: 'ECONNREFUSED',
code: 'ECONNREFUSED',
erroredSysCall: 'connect'
}
提bug前先检查以下是否已经执行
bug描述
RECVD_MSG_API 设置为http://localhost:3000/receive/ , 扫码后提示链接失败 connect ECONNREFUSED ::1:3000,具体报错log见下文。 已经确认 http://localhost:3000/receive/ 已经处于监听状态,且post请求是有响应的
提供有用的信息
docker 启动命令:
sudo docker run -d --name wxBotWebhook --restart unless-stopped -p 3000:3000 -p 3001:3001 -v ~/wxBot_logs:/app/log -e ACCEPT_RECVD_MSG_MYSELF=true -e RECVD_MSG_API=http://localhost:3000/receive/ -e LOGIN_API_TOKEN=123 dannicool/docker-wechatbot-webhook
报错log:
[2024-09-28T14:48:39.506] [INFO] - starting fetching api: http://localhost:3000/receive/ [2024-09-28T14:48:39.515] [ERROR] - Error occurred when trying to send Data to RecvdApi FetchError: request to http://localhost:3000/receive/ failed, reason: connect ECONNREFUSED ::1:3000 at ClientRequest. (/app/node_modules/.pnpm/node-fetch-commonjs@3.3.2/node_modules/node-fetch-commonjs/index.js:2223:11)
at ClientRequest.emit (node:events:529:35)
at Socket.socketErrorListener (node:_http_client:501:9)
at Socket.emit (node:events:517:28)
at emitErrorNT (node:internal/streams/destroy:151:8)
at emitErrorCloseNT (node:internal/streams/destroy:116:3)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
type: 'system',
errno: 'ECONNREFUSED',
code: 'ECONNREFUSED',
erroredSysCall: 'connect'
}