go-kratos / kratos

Your ultimate Go microservices framework for the cloud-native era.
https://go-kratos.dev
MIT License
23.06k stars 3.97k forks source link

After rpc call, error cannot be returned correctly #3169

Closed smilefisher closed 7 months ago

smilefisher commented 7 months ago

What happened:

Service A call service B, B return error, bug A can not parse the error image

What you expected to happen:

B parse the same error

How to reproduce it (as minimally and precisely as possible):

normal use

Anything else we need to know?:

Environment:

smilefisher commented 7 months ago

我想直接返回B服务返回的错误,but B服务无法解析这个错误

kratos-ci-bot commented 7 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


I want to directly return the error returned by service B, but service B cannot parse this error.

smilefisher commented 7 months ago

so i have to did this image