Skip to content

buf curl request failing but curl and grpcurl are successful... Why? #737

Answered by sudorandom
abitofhelp asked this question in Q&A
Discussion options

You must be logged in to vote

@abitofhelp do you have server reflection enabled? I noticed that you gave grpcurl the knowledge of the protobuf file using the -proto option but you didn't do the same with buf curl using --schema. I suspect that 404 Not Found is from buf curl trying to reach the reflection API, which it will do whenever it isn't given a schema. You should be able to confirm this if you use the verbose flag.

So try this:

buf curl --http2-prior-knowledge --schema=proto -d '{"name": "Jane"}' "http://127.0.0.1:8080/abitofhelp.helloworld.v1.GreeterService/SayHello" -v

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@abitofhelp
Comment options

Answer selected by abitofhelp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants