question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[WARNING](daemon.py:128): Could not reach Coolq-http-api, keep waiting...

See original GitHub issue

使用的docker配置的,因为不会使用docker-compose 所以是直接用 https://cqhttp.cc/docs/4.4/#/Docker 的方法配置的一个docker。 测试下方的API测试可以使用 http://192.168.1.10:5700/send_private_msg?user_id=123456&message=你好 该API返回 {"data":{"message_id":300},"retcode":0,"status":"ok"} 自己构建了coolq-telegram-bot的docker镜像并且把coolq的目录弄了进去,Dockerfile内容如下

FROM python:3

WORKDIR /usr/src/coolq-telegram-bot

COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt

COPY . .

CMD [ "python", "./daemon.py", "run" ]

然后docker一直如标题所示报错 [WARNING](daemon.py:128): Could not reach Coolq-http-api, keep waiting...

我原本以为是API没通,但是测试是正常的,请问如何调试或者解决

PS:我在coolq的config.ini里设置过token,为啥http的API没有验证这个token

谢谢~

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:13 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Z4HDcommented, Aug 17, 2018

@w0330t 话说你这么写会因为没装 FFMPEG 导致无法从TG向QQ转发GIF,可以拿CTB根目录下的Dockerfile试试。

0reactions
jqqqqqqqqqqcommented, Jun 14, 2019

Please open a new issue if the problem is still there.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[WARNING](daemon.py:128): Could not reach Coolq-http-api ...
我重新构建了镜像,我想问问如果再创建容器的时候使用--net=host参数会不会有什么问题?
Read more >
The unifiedmessagerelay from JQ-Networks - GithubHelp
Python 100.00% coolq-docker telegram coolq coolq-http-api telegram-bot qqbot ... [WARNING](daemon.py:128): Could not reach Coolq-http-api, keep waiting.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found