TypeError: the JSON object must be str, not 'bytes'
来源:互联网 发布:罗德曼生涯数据 编辑:程序博客网 时间:2024/06/05 01:13
story_data = json.loads(self.request.body)
提示TypeError: the JSON object must be str, not ‘bytes’
改为
story_data = json.loads(self.request.body.decode('utf-8'))
就好了
0 0
- TypeError: the JSON object must be str, not 'bytes'
- TypeError: the JSON object must be str, not 'TextIOWrapper'
- TypeError: must be str, not bytes
- TypeError: must be str, not bytes
- 保存网页TypeError: must be str, not bytes
- Python中报错TypeError: must be str, not bytes
- TypeError: write() argument must be str, not bytes
- docx2txt TypeError: write() argument must be str, not bytes
- python3-网络编程-TypeError: send() argument 1 must be bytes or buffer, not str异常
- Python出现TypeError: file() argument 1 must be encoded string without NULL bytes, not str问题解决
- Python 读写文件 中文乱码 错误TypeError: write() argument must be str, not bytes+
- python提示错误TypeError: write() argument must be str, not bytes
- Python 读写文件 错误TypeError: write() argument must be str, not bytes+
- 关于TypeError: strptime() argument 1 must be str, not bytes解析
- write() argument must be str, not bytes
- 使用pickle将对象存储到文件中时出现 TypeError: write() argument must be str, not bytes
- can't use a string pattern on a bytes-like object错误和must be str, not bytes错误
- TypeError: a bytes-like object is required, not 'str'
- Request.Params,Request.QueryString,Request.Form,Request.Request.Params的区别
- 如何让你的web应用运行在80端口
- 判断两个单链表是否相交
- c# override
- GPUImage滤镜
- TypeError: the JSON object must be str, not 'bytes'
- Android Studio出现Error:No service of type Factory available in ProjectScopeServices.
- 每天一个linux命令(21):find命令之xargs
- cpp 10.10
- 保存或打开文件
- android 以追加形式写文件并把文件保存到SD卡中
- VS2012+mysql
- Java学习博客和文章存档
- BZOJ 1588: [HNOI2002]营业额统计 (Treap/链表)