Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error occurred while getting chats from %. ETM will report no chat from this channel until further noticed. #26

Open
iaurman opened this issue Aug 21, 2023 · 0 comments

Comments

@iaurman
Copy link

iaurman commented Aug 21, 2023

docker已经启动,已经登陆VNC扫码成功,新版本的弹窗已经关闭
efb所有相关用的都是github的版本
在取消comwechat-slave后打开qq-slave,efb正常运行
单独使用comwechat-slave时,在telegram中使用/chat命令后没有返回任何联系人

docker的log:

   300K .......... .......... .......... .......... .......... 91%  381M 0s
   350K .......... .......... ..........                      100%  355M=0.001s

2023-08-21 16:11:09 (271 MB/s) - 已保存 “comwechat.zip” [390095/390095])

Archive:  comwechat.zip
   creating: comwechat/com/
  inflating: comwechat/com/CWeChatRobot.exe
  inflating: comwechat/com/DWeChatRobot.dll
  inflating: comwechat/com/wxRobot.py
replace comwechat/http/SWeChatRobot.dll? [y]es, [n]o, [A]ll, [N]one, [r]ename:  NULL
(EOF or read error, treating as "[N]one" ...)
/usr/bin/xauth:  file /root/.Xauthority does not exist

New Xtigervnc server 'one.lan:5 (root)' on port 5905 for display :5.
Use xtigervncviewer -SecurityTypes VncAuth,TLSVnc -passwd /root/.vnc/passwd one.lan:5 to connect to the VNC server.

ALSA lib pcm_dmix.c:1075:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave
MESA-INTEL: warning: Haswell Vulkan support is incomplete
MESA-INTEL: warning: Haswell Vulkan support is incomplete
MESA-INTEL: warning: Haswell Vulkan support is incomplete
MESA-INTEL: warning: Haswell Vulkan support is incomplete
dbus[31]: arguments to dbus_connection_send_with_reply_and_block() were incorrect, assertion "connection != NULL" failed in file ../../../dbus/dbus-connection.c line 3544.
This is normally a bug in some application using the D-Bus library.

  D-Bus not built with -rdynamic so unable to print a backtrace
wine: Assertion failed at address F7F1D579 (thread 0058), starting debugger...
2023-08-21 09:15:39: basic_code_modules.cc:73: ERROR: Module rsaenh.dll could not be stored
2023-08-21 09:15:39: basic_code_modules.cc:73: ERROR: Module api-ms-win-downlevel-shell32-l1 could not be stored
2023-08-21 09:15:39: basic_code_modules.cc:73: ERROR: Module api-ms-win-downlevel-shell32-l1 could not be stored
2023-08-21 09:15:39: basic_code_modules.cc:73: ERROR: Module rsaenh.dll could not be stored
ALSA lib pcm_dmix.c:1075:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dmix.c:1075:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave

DevTools listening on ws://127.0.0.1:10250/devtools/browser/54e7af05-74b2-4010-8712-756bfd63e463
MESA-INTEL: warning: Haswell Vulkan support is incomplete
MESA-INTEL: warning: Haswell Vulkan support is incomplete
MESA-INTEL: warning: Haswell Vulkan support is incomplete
MESA-INTEL: warning: Haswell Vulkan support is incomplete
ALSA lib pcm_dmix.c:1075:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dmix.c:1075:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave

DevTools listening on ws://127.0.0.1:10250/devtools/browser/5f976cb3-9645-48bf-93f9-5bbe049ee057
MESA-INTEL: warning: Haswell Vulkan support is incomplete
MESA-INTEL: warning: Haswell Vulkan support is incomplete
MESA-INTEL: warning: Haswell Vulkan support is incomplete
MESA-INTEL: warning: Haswell Vulkan support is incomplete

efb的log:

Started EH Forwarder Bot Service.
2023-08-21 16:35:50,235 - __main__ - Level 99 -  Initializing slave honus.comwechat...
2023-08-21 16:35:50,235 [Level 99]: __main__ (__main__.init; __main__.py:129)
     Initializing slave honus.comwechat...
2023-08-21 16:35:50,237 - comwechat - INFO - ComWeChat Slave Channel initialized.
2023-08-21 16:35:50,237 - comwechat - INFO - Version: 1.0.5
2023-08-21 16:35:50,241 - __main__ - Level 99 -  Slave channel ComWechatChannel (honus.comwechat) # Default profile is initialized.
2023-08-21 16:35:50,241 [Level 99]: __main__ (__main__.init; __main__.py:137)
     Slave channel ComWechatChannel (honus.comwechat) # Default profile is initialized.
2023-08-21 16:35:50,241 - __main__ - Level 99 -  Initializing master blueset.telegram...
2023-08-21 16:35:50,241 [Level 99]: __main__ (__main__.init; __main__.py:142)
     Initializing master blueset.telegram...
--- Logging error ---
Traceback (most recent call last):
  File "/root/.pyenv/versions/efb/lib/python3.11/site-packages/efb_telegram_master/chat_object_cache.py", line 38, in __init__
    chats = module.get_chats()
            ^^^^^^^^^^^^^^^^^^
  File "/root/.pyenv/versions/efb/lib/python3.11/site-packages/efb_wechat_comwechat_slave/ComWechat.py", line 458, in get_chats
    self.GetContactListBySql()
  File "/root/.pyenv/versions/efb/lib/python3.11/site-packages/efb_wechat_comwechat_slave/ComWechat.py", line 677, in GetContactListBySql
    contacts = self.bot.GetContactListBySql()
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/.pyenv/versions/efb/lib/python3.11/site-packages/wechatrobot/Api.py", line 166, in GetContactListBySql
    ContactList = self.QueryDatabase(db_handle=self.GetDBHandle(), sql=sql)["data"]
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/.pyenv/versions/efb/lib/python3.11/site-packages/wechatrobot/Api.py", line 115, in QueryDatabase
    return self.post(WECHAT_DATABASE_QUERY , QueryDatabaseBody(**params))
                                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/.pyenv/versions/efb/lib/python3.11/site-packages/pydantic/main.py", line 159, in __init__
    __pydantic_self__.__pydantic_validator__.validate_python(data, self_instance=__pydantic_self__)
pydantic_core._pydantic_core.ValidationError: 1 validation error for QueryDatabaseBody
db_handle
  Input should be a valid string [type=string_type, input_value=167412216, input_type=int]
    For further information visit https://errors.pydantic.dev/2.2/v/string_type
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/root/.pyenv/versions/3.11.1/lib/python3.11/logging/__init__.py", line 1110, in emit
    msg = self.format(record)
          ^^^^^^^^^^^^^^^^^^^
  File "/root/.pyenv/versions/3.11.1/lib/python3.11/logging/__init__.py", line 953, in format
    return fmt.format(record)
           ^^^^^^^^^^^^^^^^^^
  File "/root/.pyenv/versions/3.11.1/lib/python3.11/logging/__init__.py", line 687, in format
    record.message = record.getMessage()
                     ^^^^^^^^^^^^^^^^^^^
  File "/root/.pyenv/versions/3.11.1/lib/python3.11/logging/__init__.py", line 377, in getMessage
    msg = msg % self.args
          ~~~~^~~~~~~~~~~
ValueError: unsupported format character ' ' (0x20) at index 42
Call stack:
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/root/.pyenv/versions/efb/lib/python3.11/site-packages/ehforwarderbot/__main__.py", line 347, in <module>
    main()
  File "/root/.pyenv/versions/efb/lib/python3.11/site-packages/ehforwarderbot/__main__.py", line 335, in main
    init(conf)
  File "/root/.pyenv/versions/efb/lib/python3.11/site-packages/ehforwarderbot/__main__.py", line 147, in init
    coordinator.add_channel(module(instance_id=instance_id))
  File "/root/.pyenv/versions/efb/lib/python3.11/site-packages/efb_telegram_master/__init__.py", line 125, in __init__
    self.chat_manager: ChatObjectCacheManager = ChatObjectCacheManager(self)
  File "/root/.pyenv/versions/efb/lib/python3.11/site-packages/efb_telegram_master/chat_object_cache.py", line 40, in __init__
    self.logger.exception("Error occurred while getting chats from %. "
Message: 'Error occurred while getting chats from %. ETM will report no chat from this channel until further noticed.'
Arguments: ('honus.comwechat',)
--- Logging error ---
Traceback (most recent call last):
  File "/root/.pyenv/versions/efb/lib/python3.11/site-packages/efb_telegram_master/chat_object_cache.py", line 38, in __init__
    chats = module.get_chats()
            ^^^^^^^^^^^^^^^^^^
  File "/root/.pyenv/versions/efb/lib/python3.11/site-packages/efb_wechat_comwechat_slave/ComWechat.py", line 458, in get_chats
    self.GetContactListBySql()
  File "/root/.pyenv/versions/efb/lib/python3.11/site-packages/efb_wechat_comwechat_slave/ComWechat.py", line 677, in GetContactListBySql
    contacts = self.bot.GetContactListBySql()
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/.pyenv/versions/efb/lib/python3.11/site-packages/wechatrobot/Api.py", line 166, in GetContactListBySql
    ContactList = self.QueryDatabase(db_handle=self.GetDBHandle(), sql=sql)["data"]
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/.pyenv/versions/efb/lib/python3.11/site-packages/wechatrobot/Api.py", line 115, in QueryDatabase
    return self.post(WECHAT_DATABASE_QUERY , QueryDatabaseBody(**params))
                                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/.pyenv/versions/efb/lib/python3.11/site-packages/pydantic/main.py", line 159, in __init__
    __pydantic_self__.__pydantic_validator__.validate_python(data, self_instance=__pydantic_self__)
pydantic_core._pydantic_core.ValidationError: 1 validation error for QueryDatabaseBody
db_handle
  Input should be a valid string [type=string_type, input_value=167412216, input_type=int]
    For further information visit https://errors.pydantic.dev/2.2/v/string_type
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/root/.pyenv/versions/3.11.1/lib/python3.11/logging/__init__.py", line 1110, in emit
    msg = self.format(record)
          ^^^^^^^^^^^^^^^^^^^
  File "/root/.pyenv/versions/3.11.1/lib/python3.11/logging/__init__.py", line 953, in format
    return fmt.format(record)
           ^^^^^^^^^^^^^^^^^^
  File "/root/.pyenv/versions/3.11.1/lib/python3.11/logging/__init__.py", line 687, in format
    record.message = record.getMessage()
                     ^^^^^^^^^^^^^^^^^^^
  File "/root/.pyenv/versions/3.11.1/lib/python3.11/logging/__init__.py", line 377, in getMessage
    msg = msg % self.args
          ~~~~^~~~~~~~~~~
ValueError: unsupported format character ' ' (0x20) at index 42
Call stack:
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/root/.pyenv/versions/efb/lib/python3.11/site-packages/ehforwarderbot/__main__.py", line 347, in <module>
    main()
  File "/root/.pyenv/versions/efb/lib/python3.11/site-packages/ehforwarderbot/__main__.py", line 335, in main
    init(conf)
  File "/root/.pyenv/versions/efb/lib/python3.11/site-packages/ehforwarderbot/__main__.py", line 147, in init
    coordinator.add_channel(module(instance_id=instance_id))
  File "/root/.pyenv/versions/efb/lib/python3.11/site-packages/efb_telegram_master/__init__.py", line 125, in __init__
    self.chat_manager: ChatObjectCacheManager = ChatObjectCacheManager(self)
  File "/root/.pyenv/versions/efb/lib/python3.11/site-packages/efb_telegram_master/chat_object_cache.py", line 40, in __init__
    self.logger.exception("Error occurred while getting chats from %. "
Message: 'Error occurred while getting chats from %. ETM will report no chat from this channel until further noticed.'
Arguments: ('honus.comwechat',)
2023-08-21 16:35:50,916 - __main__ - Level 99 -  Master channel Telegram Master (blueset.telegram) # Default profile is initialized.
2023-08-21 16:35:50,916 [Level 99]: __main__ (__main__.init; __main__.py:149)
     Master channel Telegram Master (blueset.telegram) # Default profile is initialized.
2023-08-21 16:35:50,916 - __main__ - Level 99 -  All channels initialized.
2023-08-21 16:35:50,916 [Level 99]: __main__ (__main__.init; __main__.py:155)
     All channels initialized.
2023-08-21 16:35:50,916 - __main__ - Level 99 -  All middlewares are initialized.
2023-08-21 16:35:50,916 [Level 99]: __main__ (__main__.init; __main__.py:169)
     All middlewares are initialized.
2023-08-21 16:35:50,916 - apscheduler.scheduler - INFO - Scheduler started
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant