Comments (10)
does not work for proto with includes:
$ grpcc -p ./api/grpc.proto -d ./api -a service:8000
from grpcc.
I have a same problem. You can use relative path, it work for me.
from grpcc.
you can test like this:
grpcc –i -d D:FF/ --proto ./helloworld.proto --address 127.0.0.1:50051
-d, --directory path to a protobuf file directory
-p, --proto path to a protobuf file describing the service (required)
so maybe it is useful:
grpcc -d C:Users/pavankumar/Downloads/ --proto ./synchronicity.proto --address tingle-grpc.synchronicity.ai:443
from grpcc.
I'm also getting this. Windows 7, Node 8.10.
from grpcc.
I also found that you could use "-d" in combination with a simple filename for "-p".
from grpcc.
grpcc --proto common/protos/service.proto --directory common/protos --address domain.com:443
Getting the same error with OSX.
Error: Could not load file "[object Object]"
at Object.load (/usr/local/share/.config/yarn/global/node_modules/grpc/index.js:148:11)
at Object.deprecated [as load] (internal/util.js:47:15)
at createClient (/usr/local/share/.config/yarn/global/node_modules/grpcc/lib/index.js:57:21)
at Object. (/usr/local/share/.config/yarn/global/node_modules/grpcc/bin/grpcc.js:35:3)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Function.Module.runMain (module.js:693:10)
from grpcc.
This error means grpcc couldn't locate the proto file.
Although I'd really like it to say Error: Could not load file [FileName]
instead.
E.g. specifying filename instead of [Object object]
from grpcc.
This error means grpcc couldn't locate the proto file.
Although I'd really like it to sayError: Could not load file [FileName]
instead.
E.g. specifying filename instead of[Object object]
Just go to file index.js and add JSON.stringify(filename) basically it prints the object which contains the directory path and filepath
from grpcc.
Using
$ grpcc -p /Volumes/wholeDisk/libmed/ProtoObjects/postier.proto -d /Volumes/wholeDisk/libmed/ProtoObjects -a 127.0.0.1:4000 -i
print me out this error :
Error: Could not load file "{"root":"/Volumes/wholeDisk/libmed/ProtoObjects","file":"/Volumes/wholeDisk/libmed/ProtoObjects/postier.proto"}"
any tips ? Did everything above
from grpcc.
Going way after the battle, but I made it work by launching the tool in the same folder as the proto file. Doing otherwise would just throw me the error.
Hope it can help someone. Enjoy 😄
from grpcc.
Related Issues (20)
- TypeError [ERR_INVALID_ARG_TYPE]: The "options.filename" property must be of type string. Received type object HOT 10
- Error: 14 UNAVAILABLE: Connect Failed HOT 1
- Can't install HOT 3
- Cann't find 'node-v57-darwin-x64-unknown/grpc_node.node' module HOT 1
- Passing client id and secret HOT 1
- Provide authority value when connecting
- Error: Could not load file "[object Object]" HOT 4
- Error installing on macOS HOT 10
- DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead HOT 2
- Support non-protobuf message formats like Avro
- Needs deps updates HOT 4
- error: param value changed
- Lagom.GRPC with GRPCC: Error: 14 UNAVAILABLE: TCP Read failed HOT 1
- Error: no such type: X
- Path prefix to server address HOT 2
- Add support for describe the message
- Inline streaming calls improve documentation
- error": "14 UNAVAILABLE: DNS resolution failed"
- How to get list of method and service from proto file like in BloomRPC?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grpcc.