Skip to content

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

Description

@ian-qiu

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未初始化

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions