Comments (6)
We had similar issue in the past but resolved by following the protocol buffers style guide.
https://developers.google.com/protocol-buffers/docs/style
Your field name inside the message should look like this:
message validationReq {
string access_token = 1;
}
from grpc-web.
Hi @b3ntly,
I believe this is using a JavaScript/TS convention where methods are camel-cased and begin with a lowercase letter. What is the behaviour you'd expect from the generated JS?
from grpc-web.
My expectation is that using a camel-case convention in my .proto definitions will translate to camel-cased stubs in the generated Go, TS, and JS code. The problem is that while the Go and Typescript definitions are properly camel-cased, the Javascript isn't.
For example calling .setAccessToken() will pass the Typescript compilation process but throw a runtime error because the actual prototype generated via JS is .setAccesstoken();
I'm hoping someone intimate with the codebase can point me to where this might be occurring so I can submit a quick PR, as I assume it is a bug and am frankly surprised nobody else has run into it.
from grpc-web.
from grpc-web.
3.4.1
The exact environment is outlined by this Dockerfile.
Thanks for the responses, there's no huge rush as this is not a production problem, just something I'd like to get to the bottom of.
from grpc-web.
This looks to be resolved, can we close @MarcusLongmuir?
from grpc-web.
Related Issues (20)
- Empty grpc-message header throws an error HOT 7
- grpcwebproxy websocket implementation fails on multiple subprotocols HOT 2
- Implement the http.RoundTripper interface? HOT 2
- Detach IsGrpcWebRequest and IsGrpcWebSocketRequest from WrappedGrpcServer HOT 2
- grpcwebproxy websocket connection fails with specific origin HOT 2
- QUIC and HTTP3 support HOT 1
- Status codes and error messages are displayed incorrectly on the angular client. HOT 4
- Golang Grpc Web Server UnaryInterceptor is not triggered by grpc-web Client HOT 1
- Get client stream method return HOT 3
- ReferenceError: self is not defined when trying to call a grpc-web function from a CLI/server application HOT 3
- grpcwebproxy - Help Proxying existing GRPC service HOT 1
- Add support of bufbuild/protobuf-es HOT 3
- Changing route to the root of the host HOT 1
- Lack of grpc Trailers-Only support in the wrapHandler function
- Is there any way to use Nginx or Envoy with this project? HOT 1
- Question: What is the status of `go/grpcwebproxy` project? HOT 3
- grpc-web: Importing as ESModule in Node HOT 1
- grpcwebproxy `--allowed_headers` param is case-sensitive for WebSocket
- Grpc client unexpected behavior HOT 1
- Project status
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 grpc-web.