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

Unsupported Content-Encoding: UTF-8, check bodyParser config 别人请求api 报这个不支持的错误 #4554

Closed
MonsterRHD opened this issue Dec 23, 2020 · 2 comments

Comments

@MonsterRHD
Copy link

No description provided.

@MonsterRHD MonsterRHD changed the title Unsupported Content-Encoding: UTF-8, check bodyParser config 服务请求报这个错误 Unsupported Content-Encoding: UTF-8, check bodyParser config 别人请求api 报这个不支持的错误 Dec 23, 2020
@egg-bot
Copy link

egg-bot commented Dec 23, 2020

Hello @MonsterRHD. Please provide a reproducible example following the instruction.

Issues labeled by Need Reproduce will be closed if no activities in 7 days.


@MonsterRHD,请根据这个说明提供最小可复现代码。

如果在 7 天内没有进展会被自动关闭。

@reezon
Copy link

reezon commented Jan 15, 2021

@MonsterRHD 因为对方发送的数据里,header的content-encoding值是UTF-8,所以在body-parser里面就报错了。
要么让对方把content-encoding删掉,要么就是你在接收数据的时候自己把content-encoding删掉

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

No branches or pull requests

4 participants