python-wechaty icon indicating copy to clipboard operation
python-wechaty copied to clipboard

wechaty_puppet.exceptions.WechatyPuppetConfigurationError

Open yu-yu-yu30 opened this issue 3 years ago • 4 comments

Why i have connect problem either with token =python-wechaty-uos-token or my personal uuid with wechaty_puppet.exceptions.WechatyPuppetConfigurationError: WechatyPuppetConfigurationError("can't not ping endpoint: 140.206.157.242:8080", None, None)。 my docker service seems well and one day before i cound run it . it seems fetching endpoint from chatie-server: https://api.chatie.io/v0/hosties/python-wechaty-uos-token and then turns to {"host":"127.0.0.1","ip":"42.193.105.229","port":8080}

yu-yu-yu30 avatar Feb 15 '22 03:02 yu-yu-yu30

It seems that you use the free uos protocol to start your bot, but it's disabled by tencent now. you can refer to: https://github.com/wechaty/python-wechaty/issues/287 to get more details about this issue.

wj-Mcat avatar Feb 15 '22 03:02 wj-Mcat

image i found in the code there is a ping_endpoint function, that is why it failed. is it also because of the protocol?

yu-yu-yu30 avatar Feb 15 '22 07:02 yu-yu-yu30

ping_endpoint is to make sure that your service exists. As the shown error info, it can't ping 42.193.105.229 with port 8080 . To make it clear, you should:

  • run command: ping 42.193.105.229 to make sure that your bot can connect to the server<42.193.105.229>.
  • if the above command works well, you should make sure that the port<8080> is opened.

Hope that can help you fix the issue, please feel free to tell me more about your next bugs.

wj-Mcat avatar Feb 16 '22 15:02 wj-Mcat

how to deal with this error

wenmj avatar Apr 06 '24 13:04 wenmj