Code Monkey home page Code Monkey logo

freecar's People

Contributors

claude-zq avatar dependabot[bot] avatar l2nce avatar nihilism0 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

freecar's Issues

运行 make api 退出了

╭─   /src/FreeCar-0.1.1     15:39   192.168.3.5 
╰>>> make api
go run ./server/cmd/api
exit status 1
make: *** [api] Error 1

如上:运行make api以后提示1个错误,没有详细的错误日志信息了,排查不到问题。

为什么blob需要在auth的init中初始化

为什么blob需要在auth的init中初始化

// auth/main.go
func main() {
	// initialization
	initialize.InitLogger()
	// xxxx
	defer p.Shutdown(context.Background())
  //init blob
	initialize.InitBlob()

并且在blob_service时无法读取对应配置name,可能是因为auth的ServerConfig读不到blob_srv?

func (kc *kClient) checkOptions() (err error) {
	// 此处为空
	if kc.opt.Svr.ServiceName == "" {
		return errors.New("service name is required")
	}
	return nil
}

我后续在auth的nacos配置中添加了blob_srv字段才解决

{
  "name": "auth_srv",
  "host": "your host",
  "mysql": {
    "host": "127.0.0.1",
    "port": 3306,
    "user": "root",
    "password": "123456",
    "db": "FreeCar",
    "salt": "FreeCar"
  },
  "otel": {
    "endpoint": ":4317"
  },
  "wx_config": {
    "app_id": "xxx",
    "app_secret": "xxx"
  },
  "blob_srv": {
    "name": "blob_srv"
    // xxx
  }
}

启动 user 报错

报错代码如下

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

不知道从哪里报出来的

文档api注解地址404

Describe the bug

A clear and concise description of what the bug is.

文档中文 api注解地址 显示404
https://www.cloudwego.io/zh/docs/hertz/tutorials/toolkit/toolkit/#%E6%94%AF%E6%8C%81%E7%9A%84-api-%E6%B3%A8%E8%A7%A3

Steps to reproduce the behavior:

  1. 文档地址 https://github.com/CyanAsterisk/FreeCar/blob/main/README_zh.md
  2. 点击开发指南 IDL api注解 显示404

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

显示正确的地址
https://www.cloudwego.io/zh/docs/hertz/tutorials/toolkit/usage/annotation/

If applicable, add screenshots to help explain your problem.

image

image

请问 make start 以后怎么配置 Consul 呢?

make api 会报这个错:

{"level":"info","msg":"Config Info: {127.0.0.1 8510 freecar/api_srv}","time":"2023-04-21T22:29:43+08:00"}
{"level":"fatal","msg":"consul kv failed: Get "http://127.0.0.1:8510/v1/kv/freecar/api_srv\": dial tcp 127.0.0.1:8510: connect: connection refused","time":"2023-04-21T22:29:43+08:00"}
exit status 1
make: *** [api] Error 1

Consul 界面是这样的,怎么把其他端口注册上去呢?还是新手
Snipaste_2023-04-21_22-39-05

运行 make migrate 报错

运行 make migrate 失败,报错如下:

go run server/cmd/auth/model/migrate/main.go
stat server/cmd/auth/model/migrate/main.go: no such file or directory
make: *** [migrate] Error 1

Process finished with exit code 2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.