我正在尝试运行一个依赖于gRPC的简单程序。我尝试了几个示例,但仍然得到以下错误: ERROR: /home/git/examples/WORKSPACE:1:1: name 'git_repository' is not defined
ERROR: Error evaluating WORKSPACE file 这是我的bazel版本: ➜ git:(master) ✗ bazel version
Build label: 0.23.2 下面是工作区文件的内容: git_repository(
name = "com_github_grpc_grpc
我无法让Google pubsub Java异步客户端干净利落地关闭。在调用Subscriber.stopAsync()之后,我得到的异常如下所示
14:30:07.600 [grpc-default-worker-ELG-1-2] WARN io.grpc.netty.shaded.io.netty.util.concurrent.DefaultPromise - An exception was thrown by io.grpc.netty.shaded.io.grpc.netty.NettyClientHandler$4.operationComplete()
我试着安装了下面的代码,并收到了一个错误
> yarn add @grpc/grpc-js@^1.4.4
...
> node-pre-gyp ERR! install response status 404 Not Found on https://node-precompiled-binaries.grpc.io/grpc/v1.24.11/node-v102-linux-x64-glibc.tar.gz
node-pre-gyp WARN Pre-built binaries not installable for grpc@1.24.11 and node@17.4.0
我通过vcpkg install grpc安装了grpc,并将其添加到cmake文件中。现在我想生成grpc c++文件,我运行:
protoc --cpp_out=grpc_file/ --grpc_out=grpc_file/ --proto_path=grpc_proto/ ./grpc_proto/side_information.proto
它返回错误:
protoc-gen-grpc: program not found or is not executable
--grpc_out: protoc-gen-grpc: Plugin failed with status cod
我正在尝试实现异步ServerInterceptor grcp.aio.ServerInterceptor。我当前的同步ServerInterceptor看起来像这个。当我尝试使用grpc.aio.ServerInterceptor并启动服务器时,服务器代码
from grpc_opentracing import open_tracing_server_interceptor
from grpc_opentracing.grpcext import intercept_server
import PromServerInterceptor
class MyServicer():
当我试图编译一个使用gRPC反射的bazel项目时,我会得到以下错误。
fatal error: external/com_github_grpc_grpc/src/proto/grpc/reflection/v1alpha/reflection.grpc.pb.h: No such file or directory
在我的工作区中,我有以下绑定:
def _com_github_grpc_grpc():
external_http_archive("com_github_grpc_grpc")
external_http_archive("buil
在GRPC上进行响应时间测试时,我遇到了这个问题,JMeter是一个spring启动服务器。我在类似的案例中读到过,它与TLS配置有关,但在我的案例中我不确定这一点。我只有在30秒内测试大约1000个请求,然后大约950个请求是ok的200个请求和50个抛出此服务器端异常的请求时才会出现此问题。
io.grpc.netty.shaded.io.netty.handler.codec.http2.Http2Exception: HTTP/2 client preface string missing or corrupt. Hex dump for received bytes: 1603010
我正在使用一个由HTTPS和自签名证书托管的GRPC服务。当我使用如下语法连接时:
const client = new productService('https://grpc-server-xxx.com:9090',
grpc.credentials.createInsecure())
我得到的错误如下
{ Error: 14 UNAVAILABLE: DNS resolution failed
at Object.exports.createStatusError (C:\grpc\node_modules\grpc\src\common.js:91:15)
at Ob
如何以及在哪里处理此错误并阻止我的应用程序崩溃? $ node app.js
Server Started at port 3000
events.js:200
throw er; // Unhandled 'error' event
^
Error: 14 UNAVAILABLE: Name resolution failed for target firestore.googleapis.com:443
at Object.callErrorFromStatus (D:\food_list\node_modules\@grpc\grpc-
我尝试构建默认的hello world () grpc示例,但使用的是conan grpc。我修改了cmakelist:
# Copyright 2018 gRPC authors.
#
# 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.apac
我有一个.NET gRPC服务器/客户端应用程序。它已经起作用了。但是现在,我在grpc客户端中的所有服务器调用中都出现了以下错误:
*Grpc.Core.RpcException: Status(StatusCode=Cancelled, Detail="Cancelled")
bei System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
bei System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNot