wechaty / dotnet-wechaty

.NET Wechaty is a Conversational SDK for Chatbot Makers Written in C#
Apache License 2.0
81 stars 29 forks source link

WECHATY_PUPPET_SERVICE_Endpoint应该填什么内容 #37

Closed tangjingtai closed 2 years ago

tangjingtai commented 2 years ago

WECHATY_PUPPET_SERVICE_Endpoint应该填什么内容

直接使用下载的代码运行报错

fail: Wechaty.Module.Puppet.WechatyPuppet[0] StartGrpcClient() exception,Grpc Retry Surplus Count 3 System.UriFormatException: Invalid URI: The URI scheme is not valid. at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind) at System.Uri..ctor(String uriString) at Grpc.Net.Client.GrpcChannel.ForAddress(String address, GrpcChannelOptions channelOptions) at Wechaty.Module.PuppetService.GrpcPuppet.StartGrpcClient() in D:\Code\Git\dotnet-wechaty\src\modules\Wechaty.Module.PuppetService\GrpcPuppet.cs:line 146 at Wechaty.Module.PuppetService.GrpcPuppet.StartGrpc() in D:\Code\Git\dotnet-wechaty\src\modules\Wechaty.Module.PuppetService\GrpcPuppet.cs:line 341

Jesn commented 2 years ago

eg: "WECHATY_PUPPET_SERVICE_ENDPOINT": "https://localhost:9002"
对应你wechaty gateway的地址,如果你wechaty使用的是老版未开启https则使用http://,如果开启了ssl的则使用https://