{ "ErrorDump": "the JSON object must be str, not 'bytes'", "StatusCode": "500" }

        response = clt.do_action_with_exception(request___)
## { "ErrorDump": "the JSON object must be str, not 'bytes'", "StatusCode": "500" }
# text = json.loads(response) win ok linux + .decode('utf-8') 加后 win 依然ok
text = json.loads(response.decode('utf-8')) stsDict = dict().fromkeys(['RequestId', 'uid', 'Expiration', 'SecurityToken', 'StatusCode'])
stsDict["RequestId"] = text["RequestId"]
stsDict["uid"] = uid
stsDict['Expiration'] = text["Credentials"]['Expiration']
stsDict['SecurityToken'] = text["Credentials"]['SecurityToken']
stsDict["StatusCode"] = "200"

  

												

最新文章

  1. js 中关联数组
  2. .NET中的yield关键字
  3. Oracle补习班第三天
  4. iOS emoji表情转码 或者判断
  5. HTML内容整理
  6. 【MongoBD】MongoBD持久化
  7. Linux 命令 alternatives和update-alternatives
  8. python学习笔记30(全局变量的两种解决办法)
  9. overload and overwrite in C++
  10. Unity入门
  11. 2017最新技术java高级架构、千万高并发、分布式集群、架构师入门到精通视频教程
  12. Codeforces 828B Black Square(简单题)
  13. 逆波兰表达式(RPN)算法简单实现
  14. 几条常见的数据库分页 SQL 语句
  15. 多项式的基本运算(FFT和NTT)总结
  16. Excel实现双击插入当前日期时间
  17. shell重定向(大于号,小于号,左右,2>&1,&)
  18. python之定义类创建实例
  19. DispatcherServlet 的创建过程
  20. DevOps - CI - 持续集成(Continuous Integration)

热门文章

  1. 【HTML/XML 6】XML文档的基本组成
  2. bzoj2277 [Poi2011]Strongbox
  3. Android Notification通知简介
  4. msp430项目编程31
  5. msp430项目编程000
  6. Flex设置PopUpManager创建modal(模态)窗口的背景样式
  7. P1194 买礼物 洛谷
  8. Vue基础学习
  9. Java中@SuppressWarnings注解用法(转)
  10. 【python】super()