-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
The data returned by the rpc call is nil, causing a panic, and then the system prints out a large number of 404 logs #2932
Comments
Can you show your code? |
manifest/config/config.yaml
http-server.go
rpc-server.go
其他文件你可以下载压缩文件,数据库文件也在里面了 |
我请求了个不存在的id查询,如果没用注册服务发现,单机运行的情况下不会出现404,但是引入了etcd做分布式部署的情况下,,就会一直出现404 |
I requested a non-existent id query. If the registration service is not used to find out, 404 will not appear in the case of stand-alone operation, but in the case of introducing etcd for distributed deployment, 404 will always appear. |
Let me see. |
@will0306 It is strange that, the logging content shows that some client wants to create http2 connection with http server but the http server does recognize the request method
|
@will0306 Hello, I figured out that you are using the same service name |
We can add extra validation for server configuration keys to avoid this issue. Mark this as enhancement. |
1. What version of
Go
and system type/arch are you using?go version go1.18.10 darwin/arm64
2. What version of
GoFrame
are you using?GoFrame CLI Tool v2.5.2, https://goframe.org
GoFrame Version: v1.16.9 in current go.mod
CLI Installed At: /Users/apple/workspace/gopath/bin/gf
CLI Built Detail:
Go Version: go1.20.6
GF Version: v2.5.2
Git Commit: 2023-08-18 09:57:25 cf29927
Build Time: 2023-08-18 16:23:18
3. Can this issue be re-produced with the latest release?
yes
4. What did you do?
http 调用rpc,一个变量没做nil判断,导致了panic,然后一直有404的请求日志
5. What did you expect to see?
6. What did you see instead?
The text was updated successfully, but these errors were encountered: