Skip to content
This repository has been archived by the owner on Aug 4, 2020. It is now read-only.

报错状态码405 #29

Open
dmrl3333 opened this issue Jun 29, 2019 · 1 comment
Open

报错状态码405 #29

dmrl3333 opened this issue Jun 29, 2019 · 1 comment

Comments

@dmrl3333
Copy link

酷Q插件日志显示:通过http上报到http://127.0.0.1:80/失败,状态码405,请问应该怎么处理?

@chinshin
Copy link
Owner

405的错误是method不对。

还有就是你改成80端口了?

  1. 改80端口前要先看有没有service占用80端口比如nginx、Apache什么的

  2. 要设置http-api的配置文件(酷q/data/app/io.github....httpapi/config/.json),post_url这个要改成80

  3. 要设置group.py,最后一行改成bot.run(host='127.0.0.1', port=80)

  4. 友情提醒,如果防火墙规则允许80端口出入站流量的话,有人知道server的ip就可能抓到上报的信息

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants