自动化测试之路软件测试Python接口测试

python学习科普--pycharm常见报错解决办法

2019-12-02  本文已影响0人  orange_ade
问题一:TypeError: 'Response' object is not subscriptable
问题二:json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
问题三:requests.exceptions.ConnectionError: HTTPConnectionPool(host='******************', port=80): Max retries exceeded with url: /****/******/*********(Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x0000012EDFCDC5F8>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed',))
问题四:{'data': None, 'message': 'goods_id is missing', 'code': 10003, 'result': False, 'created_at': 1575274851}
问题五:{'data': None, 'message': 'q is invalid, q[identity_num] is missing, q[identity_num] is invalid, q[employee_id] is missing, q[employee_id] is invalid', 'code': 10003, 'result': False, 'created_at': 1585907682}
data={
        "q": {
            "num": "",
            "id": ""
        }
}
data={
         "q[num]":"",
         "q[id]": ""
}
后面继续补充
上一篇下一篇

猜你喜欢

热点阅读