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

使用时报TypeError: the JSON object must be str, not 'bytes'的错误 #9

Closed
rampageyjq opened this issue Oct 23, 2018 · 2 comments
Closed

Comments

@rampageyjq
Copy link

使用时报TypeError: the JSON object must be str, not 'bytes'的错误,我把app.py里面a = request.get_data()改成了 a = request.get_data().decode('utf-8')就没有报错了,不知道是我环境的问题还是都有这个请况

@uroot666
Copy link

我也是报了这个错误,编码问题。

@East196
Copy link
Owner

East196 commented Feb 25, 2019

这个情况可能是Python的版本问题

@East196 East196 closed this as completed Nov 26, 2019
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

3 participants