Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question]ctx in ResponseEncoder and ErrorEncoder lost metadata information #3459

Open
MichealJl opened this issue Nov 5, 2024 · 0 comments
Labels
question Further information is requested

Comments

@MichealJl
Copy link

为什么我在http.Middleware 中的中间件设置了metadata,在ResponseEncoder中获取不到

image 在http的middleware中的以及后续业务中都能拿到我在ctx中设置的metadata, 但是responseEncoder中就不行
@MichealJl MichealJl added the question Further information is requested label Nov 5, 2024
@kratos-ci-bot kratos-ci-bot changed the title [Question]ResponseEncoder 和ErrorEncoder 中的ctx丢失了metadata信息 [Question]ctx in ResponseEncoder and ErrorEncoder lost metadata information Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant