zeromicro / go-zero

A cloud-native Go microservices framework with cli tool for productivity.
https://go-zero.dev
MIT License
28.43k stars 3.87k forks source link

Gateway proxy http request 404 #4212

Closed adcwb closed 1 week ago

adcwb commented 4 weeks ago

Reference Links: https://go-zero.dev/docs/tutorials/gateway/grpc

This is completely in accordance with the official demo example. I don't know why the request is 404.

gRPC request image

gateway http request image

$ goctl -v goctl version 1.6.4 windows/amd64

$ protoc --version libprotoc 3.19.4

$ protoc-gen-go --version protoc-gen-go.exe v1.33.0

$ protoc-gen-go-grpc --version protoc-gen-go-grpc 1.3.0

kevwan commented 2 weeks ago

Sorry, the config file in docs was not correctly indented. I've modified it. Thanks for reporting!

adcwb commented 1 week ago

OK, thanks for your help