buf curl request failing but curl and grpcurl are successful... Why? #737
-
Hello, I am very familiar with gRPC and am experimenting with connectrpc for Go. I have a simple application based on the ubiquitous Greeter example at grpc's website. After generating, building, and running the server, curl and grpc requests are successful, but when I use "buf curl" the result is "not found". I'd appreciate any ideas how I can correct this error so I can experiment with Connect's protocol. I am using buf v1.32.0 and Go go1.22.3 darwin/amd64. Thank you for your time and suggestions! Here are the commands and results: // GRPC // HTTP // CONNECT Failure: failed to resolve symbol "abitofhelp.helloworld.v1.GreeterService": unimplemented: HTTP status 404 Not Found |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
@abitofhelp do you have server reflection enabled? I noticed that you gave So try this:
|
Beta Was this translation helpful? Give feedback.
@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 withbuf curl
using--schema
. I suspect that 404 Not Found is frombuf 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: