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

34 Commits

Author SHA1 Message Date
Tony Chen a72fc68ffd feat: add error cause for statck trace (#1910)
* add error cause for statck trace
2022-04-10 16:15:34 +08:00
kwanhur ac99a5c877 style(cmd/errors/examples/middleware/transport): fix common words' spelling mistakes (#1872)
* matchs to matches
* contraint to constraint
* resovle to resolver
* ser to set

Signed-off-by: kwanhur <huang_hua2012@163.com>
2022-03-10 22:42:44 +08:00
Chen Xinyuan 4387085047 fix: fix some typos (#1869) 2022-03-09 10:51:17 +08:00
Tony Chen 03ad2b6636 fix: error code judgment (#1849)
* fix error code judgment

* fix errors test
2022-03-01 12:04:57 +08:00
shengwudiyi c250958af6 fix: perhaps MISSING (#1779)
Change-Id: If09d5e65ea61f7fbf569b3938db10241f32bb64d

Co-authored-by: shenlianfeng <shenlianfeng@bytedance.com>
2022-01-20 23:13:03 +08:00
haiyux 00c05e82a3 test:remove testify go mod (#1766)
* test:remove testify go mod

* tidy go mdo

* fix test
2022-01-14 10:02:42 +08:00
haiyux 4d3092b7aa test(errors): add errors test (#1739)
* test(errors): add errors test

* fix lint
2022-01-01 23:01:51 +08:00
haiyux f38cd9875f optimization: optimize error (#1740) 2022-01-01 23:01:24 +08:00
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
Ccheers 807edfce82 fix: 修复swagger 引用errors时找不到proto的错误 (#1348) 2021-08-16 14:21:42 +08:00
Tony Chen 81f96ee74d fix(http): fix error encoder (#1141)
* fix error encoder
2021-07-03 15:22:13 +08:00
Tony Chen d4d6925cd0 cmd/protoc-gen-go-http: fix http protoc to bind query_string (#1126)
* fix http protoc to bind query_string

Co-authored-by: longXboy <longxboyhi@gmail.com>
2021-06-30 14:13:28 +08:00
longxboy 736385c8e6 Feat/uni transport (#1028)
* add metadata incoming&outgoing

* regenerate proto

* uni transport

Co-authored-by: chenzhihui <zhihui_chen@foxmail.com>
2021-06-11 15:05:57 +08:00
Tony Chen 50e3dea2ee fix errors proto (#1020) 2021-06-09 10:48:29 +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
longxboy 5051609aef add client closed (#993) 2021-06-02 22:58:43 +08:00
longxboy 7bef6cc7d4 add err gateway timeout (#992) 2021-06-02 21:34:38 +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 f86c91849b fix lint check (#746) 2021-03-05 22:40:38 +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