Skip to content

bodyParser 放在proxy组件后不是bug #5

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

Open
guguji5 opened this issue Jul 18, 2020 · 2 comments
Open

bodyParser 放在proxy组件后不是bug #5

guguji5 opened this issue Jul 18, 2020 · 2 comments

Comments

@guguji5
Copy link

guguji5 commented Jul 18, 2020

无论是您的koa2-proxy-middleware 还是其他的koa-proxies等等,bodyParser是需要消费api发过来的post数据,并且将它解析成json并存在ctx.request.body 内,如果proxy 放在bodyParser后,转发的数据已被bodyParser接受,所以proxy一直发送不出去,以超时后 失败结束。

@guguji5
Copy link
Author

guguji5 commented Jul 18, 2020

哇,我们是同事 竟然。

@sunyongjian
Copy link
Owner

@guguji5 dchat 私聊我呀 哈哈

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants