Skip to content

grpc链接超时问题 #164

@Guwengo

Description

@Guwengo

docker我已经启动了使用puppet_padlocal也申请了token,也扫码正常了,部署再我的腾讯云服务器上,本地启动项目后提示grpc链接问题.超时!
我有个疑问环境变量我设置了token了,wechaty.NewWechaty()的时候他怎么知道我服务器地址,通过token去哪里查询码?谁知道大体原理和我说一下,捋一下思路.

下面是官网示例 使用puppet_padlocal链接云服务要单独设置什么吗?

package main

import (
	"fmt"
	"github.com/wechaty/go-wechaty/wechaty"
	"github.com/wechaty/go-wechaty/wechaty-puppet/schemas"
	"github.com/wechaty/go-wechaty/wechaty/user"
)

func main() {
	wechaty.NewWechaty().
		OnScan(func(context *wechaty.Context, qrCode string, status schemas.ScanStatus, data string) {
			fmt.Printf("Scan QR Code to login: %s\nhttps://wechaty.github.io/qrcode/%s\n", status, qrCode)
		}).
		OnLogin(func(context *wechaty.Context, user *user.ContactSelf) {
			fmt.Printf("User %s logined\n", user)
		}).
		OnMessage(func(context *wechaty.Context, message *user.Message) {
			fmt.Printf("Message: %s\n", message)
		}).DaemonStart()
}

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions