All Questions
112 questions
0
votes
1
answer
52
views
Is there any specification on gRPC support guarantees as there is with protobuf?
For protobuf there are these 2 documents detailing for how long a version is supported (maintained) and what it the compatibility between code generated with some version when used with a runtime with ...
1
vote
0
answers
64
views
Unable to run make protoc grpc_php_plugin when create clients in PHP for gRPC services
I'm trying to generating a zeebe-php client stub while referring to this documentation.
I manage to run these command succeffuly:-
$ cd grpc $ mkdir -p cmake/build $ pushd cmake/build $ cmake ../..
...
1
vote
1
answer
75
views
Protobuf failing to produce the code with the `unable to determine Go import path for` error
I have two proto files according to the following structure in my file system:
protos
├── kws
│ └── kws.proto
├── common
│ └── common.proto
And here is their content:
common.proto
syntax = "...
-3
votes
1
answer
47
views
can we implement the grpc in GoLang with the existing code?
Currently,I am exploring to use grpc with Golang for microservices communication where one microservice will act as the server and other service will be the client consuming the services from the ...
0
votes
0
answers
40
views
‘service’ has not been declared in 'namespace’
I made this simple proto file and compiled it with protoc(3.19.6).
But when i checked the pb.h i couldn't find Calculator declared in helloworld(namespace).
What should i do? i need to use "using ...
0
votes
1
answer
200
views
When I build a GRPC solution the MSBUILD cannot resolve the appropriate toolchain on Mac OSX
I'm literally going crazy: I can't build any GRPC project any more and I can't find a solution.
When I run the build command (dotnet build) I receive the following error:
mr@bogobox GrpcLab % dotnet ...
0
votes
1
answer
610
views
--pyi_out: protoc-gen-pyi: Plugin failed with status code 1
I'm trying to run this command in docker:
RUN python -m grpc_tools.protoc -I ./ --python_out=. --pyi_out=. --grpc_python_out=. my.proto
and seeing this error:
0.423 protoc-gen-pyi: program not found ...
0
votes
0
answers
138
views
java.lang.IllegalStateException: Stream 39 sent too many headers EOS: false on running gRPC server with 500 clients
I am working on a bi-directional streaming gRPC POC where I have a gRPC client,
which is spawning 500 threads to simulate 500 clients, each doing the rpc call parallelly every second.
On the gRPC ...
1
vote
1
answer
365
views
Dart protoc Compilation Does Not Create gRPC Client Class
My issue is that I am unable to get client code for my .proto in dart. I have a .proto that I have compiled and tested in C#/.NET Core 7.0. I've successfully deployed the server to another machine, ...
1
vote
1
answer
645
views
when I use protoc gave me the following error "--ts_proto_out: protoc-gen-ts_proto: %1 is not a valid Win32 application". Anyone knows why?
I'm using protoc and is not working properly. (--ts_proto_out: protoc-gen-ts_proto: %1 is not a valid Win32 application) Anyone can help me?
I am using
windows 11 pro
nest js 10.1.18
Language: ...
1
vote
1
answer
684
views
Error in generate protocol buffers in grpc node
I wanna build a microservice with gRPC in Nodejs, but I got an error.
I installed [email protected] and [email protected], but when I enter this command:
grpc_tools_node_protoc --js_out=...
1
vote
2
answers
258
views
PHP gRPC compiled code has strange symbols causing 'Failed to parse binary descriptor' error
I'm trying to test out gRPC in my Laravel application and I'm running into an error while sending the request.
PHP Details:
PHP 8.0.29 (cli) (built: Jun 8 2023 15:24:43) ( NTS ) Copyright (c) The PHP ...
0
votes
1
answer
483
views
protoc has trouble with input file
I have this shell script:
#!/usr/bin/env bash
dir_name="$(cd "$(dirname "${BASH_SOURCE}")" && PWD)"
protoc --go_out="$dir_name" --go-grpc_out="$...
1
vote
1
answer
967
views
use grpc reflection service to build static model
I am building a client to a specific grpc application, that exposes also the reflection service (so, for example, I can use grpc_cli to check the exposed call/types).
ATM I don't have direct access to ...
0
votes
0
answers
307
views
Issue in importing protoc-gen-go file
I am new to gRPC. I am implementing grpc transcoding in which I am facing an error regarding (missing method ProtoReflect). This me because of "google.golang.org/protobuf/proto" and "...
0
votes
0
answers
115
views
Python gRPC makefile: mixed implicit and static pattern rules
Trying to write a Makefile that compiles python gRPC protos but only when the source proto file changed. I ran through it multiple times and can't figure out why I'm getting that error (when running ...
0
votes
2
answers
675
views
Undefined name '$pb' used as an annotation
Generated .pbgrpc.dart has below code,
@$pb.GrpcServiceName('')
class Client extends $grpc.Client {
Error - Undefined name '$pb' used as an annotation. Try defining the name or importing it from ...
2
votes
1
answer
481
views
How to pass the data value from any type into a GRPC Protobuf struct in Golang?
I'm trying to parse the data from the ADNL lib by tonutils-go and deliver the data by GRPC.
The data I need is structured as
// struct from tonutils-go
type Transaction struct {
_ Magic ...
1
vote
1
answer
371
views
What am I doing wrong while trying to create a GRPC for web from my proto definition using protoc command in JavaScript?
I'm trying to create a JavaScript from my proto definition.
I'm using this command:
protoc \
--proto_path=./grpc \
--grpc-web_out=mode=grpcwebtext:./lib/gerado/grpc/js/ \
--fatal_warnings interface....
2
votes
2
answers
1k
views
not solve the error ::protoc-gen-go-grpc: program not found or is not executable
protoc-gen-go-grpc: program not found or is not executable
Please specify a program using absolute path or make sure the program is available in your PATH system variable
--go-grpc_out: protoc-gen-go-...
1
vote
0
answers
657
views
Can't compile proto file with plugin protoc-gen-go
I had been compiling files with protoc-gen-go and everything went ok, but then i reinstalled Ubuntu, installed protoc again and getting this with same script instead of file:
command:
protoc -I . ...
1
vote
1
answer
1k
views
"No such file or directory" protoc
The protofiles are located here E:\GolangTr\GRPC\internal\protofiles\chat.proto.
At the command line I enter
protoc --go_out=. --go_opt=paths=source_relative\ --go-grpc_out=. --go-grpc_opt=paths=...
0
votes
1
answer
1k
views
how to install protoc-gen-grpc-web
i'm calling grpc-web in a build script, building an image for docker on ubuntu:
protoc -I. graph_endpoint.proto --grpc web_out=import_style=commonjs,mode=grpcwebtext:.
it throws an error:
protoc-gen-...
1
vote
1
answer
370
views
Docker image build fails: "protoc-gen-grpc-web: program not found or is not executable"
i inherited a project with several microservices running on kubernetes. after copying the repo and running the steps that the previous team outlined, i have an issue building one of the images that i ...
0
votes
1
answer
1k
views
Protoc generates GRPC .pb.go and grpc.pb.go files in different directories
I have a GRPC service and associated requests declared in a file called github.com/myuser/myrepo/protos/iam/v1/service.proto. The header for this file looks like this:
syntax = "proto3";
...
2
votes
1
answer
2k
views
How to get the import correct when creating protocol buffer?
I am relatively new to protocol buffers and python, so I stumbled upon a problem described below. (I've done plenty of research in this issue, but found no solution)
The relevant hirarchy of my code:
....
0
votes
1
answer
461
views
Can't build docker container for Kotlin + gRPC project
Every time I try to build the application docker I get the following error:
java.io.IOException: Cannot run program "/home/gradle/.gradle/caches/modules-2/files-2.1/com.google.protobuf/protoc/3....
0
votes
1
answer
69
views
protoc failed to find the import
$ protoc --go_out=module=github.com/redmcme/go-protos:. \
--go-grpc_out=module=github.com/redmcme/go-protos:. \
--proto_path ../protos \
../protos/*/**
teams.team: File not ...
1
vote
0
answers
272
views
Getting multiple errors while trying generate grpc files using protoc-gen-entgrpc
Even after installing protoc-gen-entgrpc with this command
go install entgo.io/contrib/entproto/cmd/protoc-gen-entgrpc@latest
still getting multiple errors with protoc-gen-entgrpc
This are the ...
3
votes
1
answer
8k
views
fatal error: google/protobuf/port_def.inc: No such file or directory
i am on ubuntu and i am using libprotoc version 3.15.8 when i run cmake command it successfully done but when i run make -j it's throwing error:
.
.
.
[ 8%] Building CXX object CMakeFiles/...
1
vote
1
answer
2k
views
Error while generating grpc files (--grpc_out: protoc-gen-grpc: Plugin failed with status code 1.)
I’m trying to run the following command to generate grpc files:
protoc --proto_path=$PROTO_PATH --plugin=protoc-gen-grpc=$PLUGIN_GRPC --grpc_out=$OUT/grpc $PROTO_FILES
This results in the following ...
4
votes
2
answers
2k
views
How to use camelCase JSON tags for marshaling structs in gRPC generated files in Go?
take the struct below as an example,
type Foo struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
IsBar bool ...
1
vote
0
answers
570
views
grpc protobuf error cannot find module in nestjs
I have generated ts protobuf via protoc command
protoc --plugin=\"protoc-gen-ts=.\\node_modules\\.bin\\protoc-gen-ts.cmd\" --plugin=\"protoc-gen-grpc=.\\node_modules\\.bin\\...
34
votes
6
answers
22k
views
protoc-gen-js: program not found or is not executable
Trying to compile my protos - I need to compile them to use in my react app. But I get this error. I run the command as follows:
cd src/main/proto && protoc -I=. *.proto --js_out=import_style=...
0
votes
1
answer
731
views
How to use legacy version of protoc-gen-go with plugins
I'm not being able to generate the protobuffer files for grpc
protoc -I=./ --go_out=plugins=grpc:. code/proto/*
--go_out: protoc-gen-go: plugins are not supported; use 'protoc --go-grpc_out=...' to ...
2
votes
1
answer
2k
views
protobuf with grpc for Go in split packages
I'm trying to make my Go project using hexagonal architecture as described here.
In my project I'm using a gRPC communication generated with protoc from .proto file.
The directories structure:
|- grpc....
0
votes
1
answer
512
views
How to remove hardcoded path for --plugin=protoc-gen-grpc in CMake using vcpkg toolchain
I have a working example of building a grpc library in C++ using CMake.
However I need to hardcode the absolute path to the flag
--plugin=protoc-gen-grpc="/home/myusername/dev/lab/MiniGL/vcpkg/...
2
votes
4
answers
13k
views
Golang - google/protobuf/Empty.proto: File not found
syntax = "proto3";
package model;
import "google/protobuf/Empty.proto";
message User {
string id = 1;
string name = 2;
string email = 3;
string alamat = 4;
...
8
votes
1
answer
13k
views
--go-grpc_out: protoc-gen-go-grpc: Plugin failed with status code 1
i am getting this error when i compile my proto file:
protoc-gen-go-grpc: program not found or is not executable
Please specify a program using absolute path or make sure the program is available in ...
2
votes
1
answer
1k
views
Protoc installed by brew seems not to work in a custom build rule
I've got a M1, with XCode 13.2.1 and monterey.
I've installed brew following the official steps and also I did the extra two steps so the new brew path is added to my path.
Additionally I've added ...
1
vote
1
answer
2k
views
How can I make Timestamp Protobuff back to my timezone since the github version of timestamp is deprecated?
Alright so I just realized something when I generate new protobuff file using:
protoc my_file.proto --go_out=./
My .proto struct is somehow looks like:
message MyRequest {
google.protobuf.Timestamp ...
3
votes
1
answer
1k
views
Why is my protoc not generating gprc service stubs?
I am pulling grpc into my spring-boot-project. I pulled in this dependency:
<dependency>
<groupId>io.github.lognet</groupId>
<artifactId>grpc-spring-boot-starter</...
2
votes
2
answers
2k
views
How to make protoc generated python stub file to include package name in import
I use the protoc tool, from grpc-tools package (ver. 1.43.0) with python 3.8.10 to generate the data types and client and server stubs for my proto3 service. The generated file containing the stubs (...
0
votes
1
answer
298
views
how to fix path problem with grpc, go and protoc
is there any fix fro running protoc command for go outside go path. Like I have to export path for every new project...
$ export PATH="$PATH:$(go env GOPATH)/bin"
6
votes
1
answer
4k
views
Reverse engineering .proto files from pb2.py generated with protoc
Is it possible to get proto files from generated pb2.py with protoc? Will be the same reverse engineering possible for gRPC?
0
votes
1
answer
1k
views
protoc --dart_out=grpc:. -Iprotos helloworld.proto - directory does not exist
How do you specify a directory - the following only work if I put my helloworld.proto in a folder named protos
protoc --dart_out=. -Iprotos helloworld.proto
protos: warning: directory does not exist.
...
0
votes
1
answer
451
views
gRPC generated file doesn't have json definition
I'm trying to generate Go file from proto file but it doesn't have json definition in the method's input definition. Should I add the json definition by myself or there were something wrong with my ...
0
votes
1
answer
597
views
Service being generated but not client protoc
I am using protoc to try and generate a client / server for my gRPC service.
I have the following in my make file
stripe:
@protoc --go_out=. pkg/proto/stripe/service.proto
My proto file is
syntax ...
0
votes
1
answer
5k
views
fatal error: 'grpcpp/grpcpp.h' file not found C++
Context
I have been working with C++ for about the past 5-6 months and I'm beginning to learn gRPC. I have followed many tutorials online to get started, but I want to build a client-server ...
1
vote
0
answers
3k
views
grpc: failed to unmarshal the received message proto: bad wiretype
I'm a little surprised to see this error! The proto object is valid - I've verified it here - https://protogen.marcgravell.com/decode - 0a06616e6b697461 is the hex dump of my proto object and yet I ...