Skip to content
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

grpc server 请求报错:runtime error: invalid memory address or nil pointer dereference #151

Open
ian-qiu opened this issue Sep 19, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@ian-qiu
Copy link

ian-qiu commented Sep 19, 2024

Describe the bug
grpc请求 /helloworld.greeter.v1.GreeterService/SayHello报错

ERROR:
Code: Internal
Message: runtime error: invalid memory address or nil pointer dereference

To Reproduce
Steps to reproduce the behavior:

  1. eagle new -b main demo
  2. make run
  3. 请求:GRPC /helloworld.greeter.v1.GreeterService/SayHello
    {
    "name": "abcd"
    }
  4. See error
    ERROR:
    Code: Internal
    Message: runtime error: invalid memory address or nil pointer dereference

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

环境

  • OS: Ubuntu 24.04
  • Go: 1.23.0

经debug,发现是grpc里的logger未初始化

@qloog
Copy link
Contributor

qloog commented Sep 19, 2024

Thanks, it has been fixed.

diff: https://github.com/go-eagle/eagle-layout/pull/12/files

@qloog qloog self-assigned this Sep 20, 2024
@qloog qloog added the bug Something isn't working label Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants