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

Cannot read property 'getContactIds' of undefined with matrix-appservice-wechaty #49

Closed
yswtrue opened this issue Feb 3, 2021 · 1 comment

Comments

@yswtrue
Copy link

yswtrue commented Feb 3, 2021

When I scan the QR code and login successfully. matrix-appservice-wechaty can receive messages, but It cannot send messages to WeChat user and get these errors.

wechaty_1  | 14:54:51 ERR PuppetServiceImpl grpcError() contactList() rejection: Cannot read property 'getContactIds' of undefined
wechaty_1  | {
wechaty_1  |   code: 13,
wechaty_1  |   details: "Cannot read property 'getContactIds' of undefined"
wechaty_1  | }

This is the docker-compose.yml

version: '2'
services:
  wechaty:
      image: wechaty/wechaty:next
      volumes:
        - ./config:/data
      networks:
        - default
      environment:
        - WECHATY_PUPPET_SERVER_PORT=7777
        - WECHATY_TOKEN={{random_token}}
        - WECHATY_PUPPET=wechaty-puppet-padlocal
        - WECHATY_PUPPET_PADLOCAL_TOKEN={{token}}
      ports:
        - 7777:7777
  matrix-appservice-wechaty:
      container_name: matrix-appservice-wechaty
      image: wechaty/matrix-appservice
      volumes:
        - ./config:/data
      networks:
        - default
      environment:
        - WECHATY_PUPPET_SERVICE_TOKEN=puppet_{{random_token}}
        - WECHATY_PUPPET_SERVICE_ENDPOINT={{hostip}}:7777
        - WECHATY_PUPPET=wechaty-puppet-service
#        - WECHATY_PUPPET=wechaty-puppet-puppeteer
        - WECHATY_LOG=silly
      command: ["--config", "/data/wechaty-config.yaml", "--file", "/data/wechaty-registration.yaml"]
      ports:
        - 8788:8788

@yswtrue
Copy link
Author

yswtrue commented Feb 4, 2021

I remove all matrix users and rooms, and then remove room-store.db,user-store.db file, and then restart gateway and bridge, and it works fine now.

@yswtrue yswtrue closed this as completed Feb 4, 2021
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