You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 2, 2021. It is now read-only.
调用
micro --registry=etcd call mu.micro.book.service.user User.QueryUserByName '{"userName":"micro"}'
返回
error calling mu.micro.book.service.user.User.QueryUserByName: {"id":"go.micro.server","code":500,"detail":"panic recovered: runtime error: invalid memory address or nil pointer dereference","status":"Internal Server Error"}
检查发现
在 basic/db/mysql.go 中,需要把初始化的 mysqlDB 返回。
并在调用方 basic/db/db.go 第 32 行,改为
mysqlDB = initMysql()
The text was updated successfully, but these errors were encountered: