JHue58 / ChatLearning

基于mirai-api-http,让bot学会你的群的说话方式
GNU Affero General Public License v3.0
316 stars 21 forks source link

网络连接错误 #36

Closed 45degree closed 2 years ago

45degree commented 2 years ago

在管理员模式下, 返回查找的结果,出现网络连接错误。 我的机器人是搭建在国内的阿里云服务器上的,系统是ubuntu20.04。

JHue58 commented 2 years ago

查看一下是不是挂了代理,或者是服务器时间没有校准

45degree commented 2 years ago

我没有挂代理,服务器时间应该也没有问题

$ timedatectl status
               Local time: Mon 2022-04-18 16:22:15 CST
           Universal time: Mon 2022-04-18 08:22:15 UTC
                 RTC time: Mon 2022-04-18 16:22:16
                Time zone: Asia/Shanghai (CST, +0800)
System clock synchronized: yes
              NTP service: active
          RTC in local TZ: yes

Warning: The system is configured to read the RTC time in the local time zone.
         This mode cannot be fully supported. It will create various problems
         with time zone changes and daylight saving time adjustments. The RTC
         time is never updated, it relies on external facilities to maintain it.
         If at all possible, use RTC in UTC by calling
         'timedatectl set-local-rtc 0'.
JHue58 commented 2 years ago

可以试试看服务器能不能正常访问腾讯云,错误应该就是出现在您的服务器网络上的

45degree commented 2 years ago

能给一个具体的IP地址吗?我好测试!

JHue58 commented 2 years ago

试试这个吧https://console.cloud.tencent.com/api/explorer?Product=cos&Version=2018-11-26&Action=GetService&SignVersion=

服务器可用浏览器的话腾讯云是有测试工具可以用的

45degree commented 2 years ago

算了,我用CLtools手动解决了