TypeError: the JSON object must be str, not 'bytes'

story_data = json.loads(self.request.body)
  • 1

提示TypeError: the JSON object must be str, not ‘bytes’
改为

story_data = json.loads(self.request.body.decode('utf-8'))
  • 1

就好了

猜你喜欢

转载自blog.csdn.net/yj19961126/article/details/82724088
今日推荐