ssttkkl / PixivBot

集成插件nonebot-plugin-pixivbot的NoneBot实例的Docker镜像,适用于Docker方式部署。
MIT License
259 stars 16 forks source link

bot容器内报错 :“Error when running WebSocketConnection hook. Running cancelled!” 等 #28

Closed KisuraOP closed 2 years ago

KisuraOP commented 2 years ago

bot容器内报错如下 :

env-file.txt内容如下 :

在最小配置的基础上添加了代理url,因为不添加则在bot-gocq容器内报错无法连接上反向websocket universal服务器,添加后可正常连接。

当输入关键字时前台报错如下 :

KisuraOP commented 2 years ago

如果env-file内是完整配置,则 “fail to import "nonebot-plugin-pixivbot" .

ssttkkl commented 2 years ago

第一句话已经告诉你没连上代理了 容器内访问宿主机要用宿主机名,不能用127.0.0.1

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: suneqa @.> Sent: Friday, January 28, 2022 12:21:38 AM To: ssttkkl/PixivBot @.> Cc: Subscribed @.***> Subject: [ssttkkl/PixivBot] bot容器内报错 :“Error when running WebSocketConnection hook. Running cancelled!” 等 (Issue #28)

bot容器内报错如下 :

[https://camo.githubusercontent.com/5b52988c5904ab2c55b06b4aec319dbe3323b3b4db695c022f8cef7956435e45/68747470733a2f2f63646e2e6c756f67752e636f6d2e636e2f75706c6f61642f696d6167655f686f7374696e672f686a6f347571636d2e706e67]https://camo.githubusercontent.com/5b52988c5904ab2c55b06b4aec319dbe3323b3b4db695c022f8cef7956435e45/68747470733a2f2f63646e2e6c756f67752e636f6d2e636e2f75706c6f61642f696d6167655f686f7374696e672f686a6f347571636d2e706e67

[https://camo.githubusercontent.com/a6a0d1ee956bd73b816ff5f427a8066f1ca82300d7afb293250dcffdcfeed098/68747470733a2f2f63646e2e6c756f67752e636f6d2e636e2f75706c6f61642f696d6167655f686f7374696e672f647330347770646e2e706e67]https://camo.githubusercontent.com/a6a0d1ee956bd73b816ff5f427a8066f1ca82300d7afb293250dcffdcfeed098/68747470733a2f2f63646e2e6c756f67752e636f6d2e636e2f75706c6f61642f696d6167655f686f7374696e672f647330347770646e2e706e67

[https://camo.githubusercontent.com/5205a46a1c7c2fb8c771f4fdf3c67adf343a9aadc06a5ba67528edcd3ea65e15/68747470733a2f2f63646e2e6c756f67752e636f6d2e636e2f75706c6f61642f696d6167655f686f7374696e672f6e70697068396f302e706e67]https://camo.githubusercontent.com/5205a46a1c7c2fb8c771f4fdf3c67adf343a9aadc06a5ba67528edcd3ea65e15/68747470733a2f2f63646e2e6c756f67752e636f6d2e636e2f75706c6f61642f696d6167655f686f7374696e672f6e70697068396f302e706e67

env-file.txt内容如下 :

[https://camo.githubusercontent.com/00e037ab1d37afe77019bc6be7f9c4ab4d4476767fcdf0c51169d39dfe0e9d3a/68747470733a2f2f63646e2e6c756f67752e636f6d2e636e2f75706c6f61642f696d6167655f686f7374696e672f6f6433696a7331392e706e67]https://camo.githubusercontent.com/00e037ab1d37afe77019bc6be7f9c4ab4d4476767fcdf0c51169d39dfe0e9d3a/68747470733a2f2f63646e2e6c756f67752e636f6d2e636e2f75706c6f61642f696d6167655f686f7374696e672f6f6433696a7331392e706e67

在最小配置的基础上添加了代理url,因为不添加则在bot-gocq容器内报错无法连接上反向websocket universal服务器,添加后可正常连接。

当输入关键字时前台报错如下 :

[https://camo.githubusercontent.com/7d51b54d2ab5d1d3a28b96fc497fc3164217a8eceb97c1600b38249ba3d3e16d/68747470733a2f2f63646e2e6c756f67752e636f6d2e636e2f75706c6f61642f696d6167655f686f7374696e672f30386234363038732e706e67]https://camo.githubusercontent.com/7d51b54d2ab5d1d3a28b96fc497fc3164217a8eceb97c1600b38249ba3d3e16d/68747470733a2f2f63646e2e6c756f67752e636f6d2e636e2f75706c6f61642f696d6167655f686f7374696e672f30386234363038732e706e67

― Reply to this email directly, view it on GitHubhttps://github.com/ssttkkl/PixivBot/issues/28, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEEHL4TZEXAWMHSDR6NDN7TUYFWJFANCNFSM5M6M4THQ. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you are subscribed to this thread.Message ID: @.***>

Putarku commented 2 years ago

如果你也是用容器搭的代理,记得要把容器加到bot所在的网络内,然后在填写容器在网络内部的ip。