CMHopeSunshine / nonebot-plugin-learning-chat

Nonebot2插件,让Bot学习群友的发言和表情包。/ Nonebot2 plugin to learn what your group members say.
GNU Affero General Public License v3.0
155 stars 5 forks source link

在更改nonebot端口后,无法访问网络管理页面。 #24

Closed fatinghenji closed 1 year ago

fatinghenji commented 1 year ago

由于端口冲突,我将nonebot的监听端口从8080改成了8069 之后就无法访问管理页面了,访问返回:{"detail":"Not Found"} 请问该问题应该如何解决。

CMHopeSunshine commented 1 year ago

管理页面的端口是跟随nonebot的端口的,请确认是否访问了正确端口

fatinghenji commented 1 year ago

管理页面的端口是跟随nonebot的端口的,请确认是否访问了正确端口

.env.prod文件中相关配置项

HOST=0.0.0.0                                         
PORT=8069

应该不是访问端口的问题叭

CMHopeSunshine commented 1 year ago

那你管理页面是访问的哪个端口

CMHopeSunshine commented 1 year ago

是http://127.0.0.1:8069/LittlePaimon/admin/ 吗

fatinghenji commented 1 year ago

http://192.168.123.146:8069/LittlePaimon/admin/ 我是在局域网的另一个终端上访问的

CMHopeSunshine commented 1 year ago

那页面提示什么,是无法访问此网站还是not found

fatinghenji commented 1 year ago

{"detail":"Not Found"}

CMHopeSunshine commented 1 year ago

之前地址说错了,应该是ip地址:端口号/learning_chat/

fatinghenji commented 1 year ago

更换网址后访问控制台成功