CyanAsterisk / FreeCar

Time-sharing car rental system suite based on CloudWeGo series framework
GNU General Public License v3.0
237 stars 41 forks source link

启动 user 报错 #168

Closed godsoul closed 6 months ago

godsoul commented 6 months ago

报错代码如下

go run ./server/cmd/user
2024/02/20 16:13:58.613314 config.go:26: [Info] Config Info: {127.0.0.1 8500 freecar/user_srv}
{"level":"info","msg":"ip: 0.0.0.0","time":"2024-02-20T16:13:58+08:00"}
{"level":"info","msg":"port: 64223","time":"2024-02-20T16:13:58+08:00"}
{"level":"fatal","msg":"key length incorrect (0), expected 64","time":"2024-02-20T16:13:58+08:00"}
exit status 1
make: *** [user] Error 1

不知道从哪里报出来的

godsoul commented 6 months ago

示例文件里面 "paseto": { "pub_key": "YOUR_KEY", "implicit": "YOUR-IMPLICIT"

pub_key 字段写错了
L2ncE commented 6 months ago

感谢指正,项目有段时间没有维护了,后续会重新优化下 README,方便大家快速起起来。