Error

[!TIP] This document is machine-translated by Google. If you find grammatical and semantic errors, and the document description is not clear, please PR

Error reporting on Windows

  1. A required privilege is not held by the client.
  2. ```text
  3. Solution: "Run as administrator" goctl will work.
  4. ## grpc error
  5. * Case 1
  6. ```text
  7. protoc-gen-go: unable to determine Go import path for "greet.proto"
  8. Please specify either:
  9. a "go_package" option in the .proto source file, or
  10. a "M" argument on the command line.
  11. See https://developers.google.com/protocol-buffers/docs/reference/go-generated#package for more information.
  12. --go_out: protoc-gen-go: Plugin failed with status code 1.

Solution:

  1. go get -u github.com/golang/protobuf/protoc-gen-go@v1.3.2

protoc-gen-go installation failed

  1. go get github.com/golang/protobuf/protoc-gen-go: module github.com/golang/protobuf/protoc-gen-go: Get "https://proxy.golang.org/github.com/golang/protobuf/protoc-gen-go/@v/list": dial tcp 216.58.200.49:443: i/o timeout

Please make sure GOPROXY has been set, see Go Module Configuration for GOPROXY setting

api service failed to start

  1. error: config file etc/user-api.yaml, error: type mismatch for field xx

Please confirm whether the configuration items in the user-api.yaml configuration file have been configured. If there are values, check whether the yaml configuration file conforms to the yaml format.

command not found: goctl

  1. command not found: goctl

Please make sure that goctl has been installed or whether goctl has been added to the environment variable