当前位置: 首页 > news >正文

做视频网站的方法重庆百度地图

做视频网站的方法,重庆百度地图,山东网站建设价格实惠,网站设网站设计都是一个吗生的,找下例子 上一篇文章说到go实现的grpc方法已经实现了一个grpc的server端, 注意: 这两个项目的.proto文件应当是完全一致的,只是方法用各自的语言实现罢了 报错了: Caught error: gRPC Error (code: 12, codeName: UNIMPLEMENTED, message: grpc: Decompresso…

都是一个吗生的,找下例子

上一篇文章说到go实现的grpc方法已经实现了一个grpc的server端,

注意:

这两个项目的.proto文件应当是完全一致的,只是方法用各自的语言实现罢了

报错了:

Caught error: gRPC Error (code: 12, codeName: UNIMPLEMENTED, message: grpc: Decompressor is not installed for grpc-encoding "gzip", details: [], rawResponse: null, trailers: {})

dart客户端使用了gzip让我们去掉相对应的代码,现在代码如

// Copyright (c) 2018, the gRPC project authors. Please see the AUTHORS file
// for details. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License./// Dart implementation of the gRPC helloworld.Greeter client.
import 'package:grpc/grpc.dart';
import 'package:helloworld/src/generated/helloworld.pbgrpc.dart';Future<void> main(List<String> args) async {final channel = ClientChannel('localhost',port: 50051,options: ChannelOptions(credentials: ChannelCredentials.insecure(),// codecRegistry://     CodecRegistry(codecs: const [GzipCodec(), IdentityCodec()]),),);final stub = GreeterClient(channel);final name = args.isNotEmpty ? args[0] : 'world';try {final response = await stub.sayHello(HelloRequest()..name = name,// options: CallOptions(compression: const GzipCodec()),);print('Greeter client received: ${response.message}');} catch (e) {print('Caught error: $e');}await channel.shutdown();
}

 获取到了消息:

 dart bin/client.dart
Greeter client received: Hello world

http://www.zhongyajixie.com/news/51652.html

相关文章:

  • 做网站需要什么域名域名解析ip
  • wordpress背景板长春seo网站优化
  • 套模板网站价格表腾讯企点怎么注册
  • 做诈骗网站以及维护最近三天的国内新闻
  • 视差滚动网站源码网站分为哪几种类型
  • wordpress tob 0.6网站优化推广培训
  • 优秀学习网站云客网平台
  • 求个没封的a站yw1129cmseo营销推广平台
  • 乐山住房和规划建设局门户网站百度搜索引擎首页
  • 网站域名到期怎么办百度搜索热度指数
  • 哪个网站可以做投资回测百度竞价代理商
  • 网站seo优化推广怎么做搜索引擎优化实训报告
  • 营销活动方案名称哪里有seo排名优化
  • 党政门户网站怎么做佛山市人民政府门户网站
  • 西安做网站-西安网站建设-西安网站制作-西安网络公司_千秋网络建网站有哪些步骤
  • 照片分享网站开发费用东莞网络优化服务商
  • 连江县住房和城乡建设局网站大数据营销的概念
  • 建设银行短信开通网站销售人员培训课程有哪些
  • 现在那个网站做视频最赚钱成都百度推广电话
  • 中建八局一公司待遇怎么样seo搜索引擎优化案例
  • 做搜狗pc网站软件下载中国制造网外贸平台
  • 网站建设有哪些技术软文广告经典案例200字
  • 海口网络平台网站开发游戏推广合作平台
  • 手机网站建设设计6seo新人怎么发外链
  • 网站后台数据分析怎么做深圳发布最新通告
  • 崇左做网站公司产品营销策划方案怎么做
  • 什么网站可以做英语题今日军事新闻头条打仗
  • 南通外贸建站电脑培训班电脑培训学校
  • 毕业设计代写网站全国疫情高峰感染进度查询
  • 重庆的汽车网站建设二级域名查询入口