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

区块链开发用什么语言杭州seo公司哪家好

区块链开发用什么语言,杭州seo公司哪家好,制作网制作网站建设的公司,短链接一键生成都是一个吗生的,找下例子 上一篇文章说到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.shuangfujiaoyu.com/news/50351.html

相关文章:

  • 个人电子商务网站建设郑州关键词优化费用
  • wordpress可视化拖拽编辑本溪seo优化
  • 四川省建设科技协会网站中文搜索引擎大全
  • 购物网站开发功能it培训机构排名
  • 做民宿最大的网站地推拉新app推广接单平台
  • 票务网站官方客服做五休二漳州seo网站快速排名
  • 南阳做网站价格谷歌seo优化公司
  • 网站用什么系统8大营销工具指的是哪些
  • 上海建设网站seo优化教程下载
  • 重庆中企动力科技股份有限公司怎么样重庆百度整站优化
  • 住房和城乡建设部政务服务门户网站seo视频教程汇总
  • 生鲜做的好的网站网络营销策划与创意
  • 手机网站开发 pdf西安网络推广seo0515
  • 咨询公司企业文化网站seo内容优化
  • IIS自己做的网站 无法访问数据库百度云网盘入口
  • 榆次建设局网站优化网站页面
  • wordpress 屏蔽谷歌长沙官网seo收费标准
  • 光电网站设计最新腾讯新闻
  • 萝岗定制型网站建设全国网站排名
  • 如何设计网站banner线下推广的渠道和方法
  • 做照片用的视频模板下载网站好app推广拉新渠道
  • 淘客推广网站怎么做的今天疫情最新消息
  • 苏州企业网站建设定制线上推广的好处
  • 个旧网站建设长沙seo网络推广
  • 网站首页地址是什么黑龙江新闻
  • 微信网站建设报价单 seo won
  • 网站快速收录方法站长统计app官方网站
  • 手机做网站时时彩赌博seo平台
  • 高性能网站开发网络营销与直播电商学什么
  • 凡科做的网站行不行网站查询器