Open Guwengo opened 2 months ago
To address the gRPC connection timeout issue when using puppet_padlocal
with Wechaty in Go, it's important to understand how the server address is dynamically discovered using the token. The process involves making an HTTP GET request to https://api.chatie.io/v0/hosties/__token__
to retrieve the server address associated with your token. Ensure your token is correctly set in the WECHATY_PUPPET_SERVICE_TOKEN
environment variable for this discovery process to work.
If you're encountering timeouts, check the following:
api.chatie.io
and the discovered server address is reachable.For customizing the gRPC connection timeout, you can use the WithTimeout(duration time.Duration)
function to set a desired timeout period. Additionally, adjusting the GrpcReconnectInterval
can help manage connection stability across varying network conditions.
If you continue to face issues, ensure all configurations are correct and consider network conditions or server response times as potential factors.
To continue the conversation, mention @dosu.
You are welcome to join the Wechaty Discord Server: there is a #go channel for discussing the Go Wechaty related questions.
Join Discord at https://discord.gg/7q8NBZbQzt
docker我已经启动了使用puppet_padlocal也申请了token,也扫码正常了,部署再我的腾讯云服务器上,本地启动项目后提示grpc链接问题.超时! 我有个疑问环境变量我设置了token了,wechaty.NewWechaty()的时候他怎么知道我服务器地址,通过token去哪里查询码?谁知道大体原理和我说一下,捋一下思路.
下面是官网示例 使用puppet_padlocal链接云服务要单独设置什么吗?