You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
kratos-ci-bot
changed the title
[Question]ResponseEncoder 和ErrorEncoder 中的ctx丢失了metadata信息
[Question]ctx in ResponseEncoder and ErrorEncoder lost metadata information
Nov 5, 2024
Hi, @MichealJl. I'm Dosu, and I'm helping the Kratos team manage their backlog. I'm marking this issue as stale.
Issue Summary
You reported an issue where metadata set in the HTTP middleware context is not accessible in the ResponseEncoder.
The metadata remains available in the subsequent business logic but is lost at the ResponseEncoder stage.
No comments or developments have been made on this issue yet.
Next Steps
Could you please confirm if this issue is still relevant to the latest version of the Kratos repository? If so, feel free to keep the discussion open by commenting here.
If there is no further activity, this issue will be automatically closed in 7 days.
Thank you for your understanding and contribution!
dosubotbot
added
the
stale
Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed
label
Feb 4, 2025
为什么我在http.Middleware 中的中间件设置了metadata,在ResponseEncoder中获取不到
The text was updated successfully, but these errors were encountered: