1
0
mirror of https://github.com/go-kratos/kratos.git synced 2026-05-22 10:15:24 +02:00
Commit Graph

19 Commits

Author SHA1 Message Date
pwli 378d1ee3c7 fix: enhance error.FromError (#1451)
add converting support for grpc status which not contain details with type `errdetails.ErrorInfo`
2021-09-08 21:56:35 +08:00
letian fa54a1dd3a feat: Support custom status code conversion from HTTP and gRPC. (#1410)
* feat: Support custom status code conversion from HTTP and gRPC.

Co-authored-by: Letian Yi <yiletian@webull.com>
2021-09-05 23:25:33 +08:00
Kagaya f7588a47de fix: ci lint error (#1391)
* fix lint check

* fix lll lint error

* fix build error

* fix gomnd

* fix shadow declaration

* add make test command

* update
2021-08-31 10:14:57 +08:00
wwwhaoxu df6bbaa091 fix(errors): code error (#1394) 2021-08-31 09:43:36 +08:00
Tony Chen 81f96ee74d fix(http): fix error encoder (#1141)
* fix error encoder
2021-07-03 15:22:13 +08:00
包子 0834128e57 add protoc-gen-errors (#1017)
* add protoc-gen-errors

* fix protoc-gen-go-errors/go.mod

* default_code handling

* Modify code value range
2021-06-08 16:33:50 +08:00
miya c551448bbd error.Code def support http , mw/log&metrics update (#1015)
* mw/metrics add tag
2021-06-08 11:28:02 +08:00
miya 544e08f729 mw/log: http code 0 (#1010)
* fix middleware/log default code
2021-06-07 12:38:57 +08:00
Tony Chen 7dec80ccfd fix error code and regenerate proto (#954)
* fix error code and regenerate proto
2021-05-26 20:05:34 +08:00
Tony Chen 66412031fd errors: refactor status code (#948)
* refactor status code
2021-05-25 15:01:53 +08:00
Tony Chen cc0221b5ce errors: add errors coder (#946)
* add errors coder

* rename internal http to httputil

* add errors proto
2021-05-25 00:56:31 +08:00
opensite 83eba7083a examples/blog:update the trace to be consistent with the official (#888) 2021-04-29 22:06:01 +08:00
Tony Chen 6919f158cd api/errors: fix parse error (#881)
* fix parse error
2021-04-29 10:56:53 +08:00
Tony Chen 7c6f53132f api/errors: refactor to grpc statas (#880)
* refactor to grpc status
2021-04-28 23:09:27 +08:00
Tony Chen e1c84ece84 refactor errors (#863) 2021-04-26 16:17:04 +08:00
Tony Chen 3780f70c91 examples: update mod (#862)
* fix examples errors
2021-04-25 22:26:31 +08:00
Tony Chen 9806191b7f errors: Error v2 (#860)
* refactor api errors
2021-04-25 20:19:23 +08:00
Tony Chen 496edc6fb1 Http/refactor register service (#734)
* refactor http handle
2021-03-03 22:22:59 +08:00
chenzhihui 3566386a89 init v2 2021-02-17 17:14:47 +08:00