Closed Manuelraa closed 2 weeks ago
me too.
@Manuelraa Thanks so much for filing a detailed bug, with a repo for reproducing as well!
I think you're indeed right that the credentials
is not being used.
I don't have all the history of the project, but from what i can see, even from the very early versions of the generator code (example) , the credentials
field was not used.
@stanley-cheung Hey Stanley I wonder if you have some background on the credentials
parameter? Was it ever utilized in grpc web client? Thanks!
I guess this is working-as-intended so closing for now.. :) We will keep in mind to clean-up the credentials field in future API iterations.
Feel free to re-open and follow up later if there are more updates. Thanks!
When compiling grpc-web code the generated client's
credentials
argument is unused.Therefore I have to manually provide credentials in request metadata.
Example/Reproduced in this repo: https://github.com/Manuelraa/grpc_web_creds_bug
Files
Example proto
Dockerfile for generation
generate script
Code generation and the problem
Generating files
Checking the generated code
Then checking the generated
test_grpc_web_pb.js
file we see thecredentials
parameter is not handled.