-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not able to pass allow_delete_body to protoc-gen-grpc-gateway. #402
Comments
I am guessing you are using old version of plugin. This flag was added recently. https://github.com/grpc-ecosystem/grpc-gateway/commits/master |
@tamalsaha I think I'm using the latest one.
I saw it's a recently added feature. |
I also tried to run
without any issue. That's why I guess the problem is "the way" I passed it to "protoc" is wrong. |
@uynap last time I played the protoc flag game was > 1 year ago so I'm working from foggy memories. I do think the problem is the way you're passing your flag into protoc. Could you try:
Notice that I added it to the --grpc-gateway_out flag. I think the syntax, again this is an old memory, is |
I believe the flags are comma separated. Here is a snippet from our build scripts:
|
@tamalsaha, thanks for following up. Given that his sample came from a real makefile instead of the back of my head I would like to revise my question. Can you try this out:
|
@tamalsaha Thanks a lot! It's exactly what I'm looking for. It is "comma separated". |
@uynap , not sure where I found that. It has a been while. Usually bit of trial and error and head scratching gets the job done. :) |
I looked through the documents and searched the google. I tried to pass "allow_delete_body" to protoc-gen-grpc-gateway but failed.
It ends up with the question: how to pass the "allow_delete_body" to protoc-gen-grpc-gateway when issuing "protoc"?
Here's my currently protoc command:
I got error message:
Unknown flag: --allow_delete_body
The text was updated successfully, but these errors were encountered: