grpc

Why 0.0.0.0 is working and localhost or 127.0.01 is not

馋奶兔 提交于 2021-02-07 07:18:20
问题 I have a grpc-go server running in docker container, listening on 0.0.0.0:8080 . I found this to be working after having failures with listening on localhost or 127.0.0.1 in a docker container - and it only failed running in a docker container, not if I go run on the same machine. Also a simple web server did work listening on localhost or 127.0.0.1. I found that 0.0.0.0 is listening on any network adapter - but found no other explanations. Well, problem solved - but I am looking for an

Unable to install grpcio using pip install grpcio

一个人想着一个人 提交于 2021-02-06 09:51:06
问题 I am getting error while installing grpcio using pip install grpcio on my windows machine.I read here - https://github.com/grpc/grpc/issues/17829 that it may be due to error in a version of setuptools. I upgraded my setuptools to the latest version i.e. 41.0.1 . Still getting the same build error. Its not happening for any other package. I have tried reinstalling pip and python both on my laptop. I'm attaching my error Building wheels for collected packages: grpcio Building wheel for grpcio

Unable to install grpcio using pip install grpcio

寵の児 提交于 2021-02-06 09:50:07
问题 I am getting error while installing grpcio using pip install grpcio on my windows machine.I read here - https://github.com/grpc/grpc/issues/17829 that it may be due to error in a version of setuptools. I upgraded my setuptools to the latest version i.e. 41.0.1 . Still getting the same build error. Its not happening for any other package. I have tried reinstalling pip and python both on my laptop. I'm attaching my error Building wheels for collected packages: grpcio Building wheel for grpcio

bindableService issue with grpc-java

我是研究僧i 提交于 2021-02-05 11:25:26
问题 I am trying to use grpc-java v1.1.2 (build.gradle section below) but when I try to run the fat jar for the sample application, its throwing the exception given below. I do not see any issues when compiling the application. build.gradle parts: apply plugin: 'com.google.protobuf' buildscript { repositories { mavenCentral() mavenLocal() } dependencies { // ASSUMES GRADLE 2.12 OR HIGHER. Use plugin version 0.7.5 with earlier // gradle versions classpath 'com.google.protobuf:protobuf-gradle-plugin

People API: FBS quota limit exceeded

我怕爱的太早我们不能终老 提交于 2021-02-05 09:18:11
问题 While syncing contacts using the People API, I've run into a quota limit error which I don't understand and haven't found any information about it on the net. The error is the following: "error": { "code": 429, "message": "Resource has been exhausted (e.g. check quota).", "status": "RESOURCE_EXHAUSTED", "details": [ { "@type": "type.googleapis.com/google.rpc.QuotaFailure", "violations": [ { "subject": "QUOTA_EXCEEDED", "description": "FBS quota limit exceeded." } ] } ] Does anyone have any

pulsar standalone模式启动报错

ぃ、小莉子 提交于 2021-01-30 18:13:01
12:10:11.305 [main] ERROR org.apache.pulsar.PulsarStandaloneStarter - Failed to start pulsar service. io.grpc.StatusRuntimeException: UNAVAILABLE: io exception Caused by: io.netty.channel.AbstractChannel$AnnotatedSocketException: Invalid argument: /0.0.0.1:4181 Caused by: java.net.SocketException: Invalid argument 原启动命令: cd /data/modules/pulsar/;nohup /data/modules/pulsar/bin/pulsar standalone >/dev/null 2>&1 & 加入-nss ,解决,之前也是挂了之后,重启失败,也是加上这个: cd /data/modules/pulsar/;nohup /data/modules/pulsar/bin/pulsar standalone -nss >/dev/null 2>&1 & 来源: oschina 链接: https://my.oschina.net/fufangchun/blog

云原生|我对云原生软件架构的观察与思考

夙愿已清 提交于 2021-01-30 03:11:53
作者 | 易立,阿里云资深技术专家,容器技术负责人 本系列文章: 第一篇 - 云原生基础设施 (已发布,文末点击阅读原文查看) 第二篇 - 云原生软件架构(本文) 第三篇 - 云原生应用交付与运维体系(待续) 前言 在《云原生基础设施》一文中我们谈到了,云原生计算包含三个维度的内容,云原生基础设施,软件架构和交付与运维体系,本文将聚焦于软件架构层面。 “Software architecture refers to the fundamental structures of a software system and the discipline of creating such structures and systems. ” - 维基百科。 在我的理解,软件架构主要目标是解决下列挑战: 控制复杂性。 由于业务的复杂性,需要我们用更好的手段帮助研发组织克服认知障碍,更好的分工协作。分而治之,关注点分离等手段皆是如此。 应对不确定性。 业务在快速发展,需求在不断变化。即使再完美的软件架构,然而随着时间的推移,团队的变化,软件架构的调整不可避免。读《设计模式》,《微服务设计》等书字里行间写的都是“解耦”两字,让我们关注架构中确定性和不确定性的分离,提升架构的稳定性和应变能力。 管理系统性风险。 管理系统中的确定性以及不确定性风险,规避已知陷阱,对未知的风险做好准备。

firebasehosting.googleapis.com/network/active_connections: No such file or directory

僤鯓⒐⒋嵵緔 提交于 2021-01-29 22:38:24
问题 According to firebasedatabase metrics firebasedatabase Metrics from Firebase. Launch stages of these metrics: BETA GA The following metric type names must be prefixed with firebasedatabase.googleapis.com/. That prefix has been omitted from the entries in the table. Follow its guidance I tried reached it from gshell and I got 来源: https://stackoverflow.com/questions/61551885/firebasehosting-googleapis-com-network-active-connections-no-such-file-or-direc

gRPC: cannot connect to a Linux service from a Windows client

跟風遠走 提交于 2021-01-29 19:00:14
问题 I'm trying to start using gRPC service in my project. For the beginning I'm using a test project in Visual Studio that is created automatically when you add a gRPC service project. Here's some code. Client: class Program { static async Task Main(string[] args) { HttpClientHandler clientHandler = new HttpClientHandler { ServerCertificateCustomValidationCallback = (sender, cert, chain, sslPolicyErrors) => { return true; } }; HttpClient httpClient = new HttpClient(clientHandler); using var

How to send error details like as BadRequest

两盒软妹~` 提交于 2021-01-29 16:32:35
问题 I need send rich structured error details on gRPC error. I think it's maybe like this: fv = BadRequest.FieldViolation(field="login", description="Name is not unique") bad_request = BadRequest(field_violations=[fv]) context.abort(StatusCode.INVALID_ARGUMENT, bad_request.SerializeToString()) But is's wrong and send bytes in summary error text. I use grpcio==1.17.1 回答1: I got feedback on github issue https://github.com/grpc/grpc/issues/17601 Everything works in version 1.18.0 来源: https:/