1
0
mirror of https://github.com/go-kratos/kratos.git synced 2025-01-24 03:46:37 +02:00

35 Commits

Author SHA1 Message Date
songzhibin97
1dfb77bfe1
Update errors.go () 2022-05-20 18:51:09 +08:00
Tony Chen
a72fc68ffd
feat: add error cause for statck trace ()
* 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 ()
* 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 () 2022-03-09 10:51:17 +08:00
Tony Chen
03ad2b6636
fix: error code judgment ()
* fix error code judgment

* fix errors test
2022-03-01 12:04:57 +08:00
shengwudiyi
c250958af6
fix: perhaps MISSING ()
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 ()
* 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 ()
* test(errors): add errors test

* fix lint
2022-01-01 23:01:51 +08:00
haiyux
f38cd9875f
optimization: optimize error () 2022-01-01 23:01:24 +08:00
pwli
378d1ee3c7
fix: enhance error.FromError ()
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. ()
* 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 ()
* 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 () 2021-08-31 09:43:36 +08:00
Ccheers
807edfce82
fix: 修复swagger 引用errors时找不到proto的错误 () 2021-08-16 14:21:42 +08:00
Tony Chen
81f96ee74d
fix(http): fix error encoder ()
* 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 ()
* 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 ()
* 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 () 2021-06-09 10:48:29 +08:00
包子
0834128e57
add protoc-gen-errors ()
* 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 ()
* mw/metrics add tag
2021-06-08 11:28:02 +08:00
miya
544e08f729
mw/log: http code 0 ()
* fix middleware/log default code
2021-06-07 12:38:57 +08:00
longxboy
5051609aef
add client closed () 2021-06-02 22:58:43 +08:00
longxboy
7bef6cc7d4
add err gateway timeout () 2021-06-02 21:34:38 +08:00
Tony Chen
7dec80ccfd
fix error code and regenerate proto ()
* fix error code and regenerate proto
2021-05-26 20:05:34 +08:00
Tony Chen
66412031fd
errors: refactor status code ()
* refactor status code
2021-05-25 15:01:53 +08:00
Tony Chen
cc0221b5ce
errors: add errors coder ()
* 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 () 2021-04-29 22:06:01 +08:00
Tony Chen
6919f158cd
api/errors: fix parse error ()
* fix parse error
2021-04-29 10:56:53 +08:00
Tony Chen
7c6f53132f
api/errors: refactor to grpc statas ()
* refactor to grpc status
2021-04-28 23:09:27 +08:00
Tony Chen
e1c84ece84
refactor errors () 2021-04-26 16:17:04 +08:00
Tony Chen
3780f70c91
examples: update mod ()
* fix examples errors
2021-04-25 22:26:31 +08:00
Tony Chen
9806191b7f
errors: Error v2 ()
* refactor api errors
2021-04-25 20:19:23 +08:00
Tony Chen
f86c91849b
fix lint check () 2021-03-05 22:40:38 +08:00
Tony Chen
496edc6fb1
Http/refactor register service ()
* refactor http handle
2021-03-03 22:22:59 +08:00
chenzhihui
3566386a89 init v2 2021-02-17 17:14:47 +08:00