You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have grpc-gateway plugin enabled for a grpc backend service with http mappings defined in the proto file.
The error proto3 disallow 'optional' label is shown in kong logs when making an Http request to a rpc method with optional labeled field in the request.
I tried to push a branch to this repo with the change to grpc.lua, however I am getting permission denied. I can make the PR if I'm granted permissions to push branches and create PRs
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
Is there an existing issue for this?
Kong version (
3.9.0
)3.9.0
Current Behavior
I have
grpc-gateway
plugin enabled for a grpc backend service with http mappings defined in the proto file.The error
proto3 disallow 'optional' label
is shown in kong logs when making an Http request to a rpc method with optional labeled field in the request.I experimented and found that adding this line to
function _M.new()
in kong/tools/grpc.lua fixes the errorExpected Behavior
grpc-gateway should successfully load the proto file and route the http request to the rpc method
Steps To Reproduce
kong.yaml
feature-a-user.proto
Http request
curl -X PATCH 0.0.0.0:8000/v1/feature-a/user/1 -d '{"name": "test"}'
Anything else?
I tried to push a branch to this repo with the change to grpc.lua, however I am getting permission denied. I can make the PR if I'm granted permissions to push branches and create PRs
The text was updated successfully, but these errors were encountered: