Traceback (most recent call last):
File "F:/dxx/awei/mgr/common/req/xcentral_req.py", line 404, in <module>
x_central_req.ssoedr()
File "F:/dxx/awei/mgr/common/req/xcentral_req.py", line 396, in ssoedr
verify=False)
File "C:Python27libsite-packages
equestssessions.py", line 559, in post
return self.request('POST', url, data=data, json=json, **kwargs)
File "C:Python27libsite-packages
equestssessions.py", line 498, in request
prep = self.prepare_request(req)
File "C:Python27libsite-packages
equestssessions.py", line 441, in prepare_request
hooks=merge_hooks(request.hooks, self.hooks),
File "C:Python27libsite-packages
equestsmodels.py", line 311, in prepare
self.prepare_cookies(cookies)
File "C:Python27libsite-packages
equestsmodels.py", line 568, in prepare_cookies
cookie_header = get_cookie_header(self._cookies, self)
File "C:Python27libsite-packages
equestscookies.py", line 142, in get_cookie_header
jar.add_cookie_header(r)
File "C:Python27libcookielib.py", line 1342, in add_cookie_header
attrs = self._cookie_attrs(cookies)
File "C:Python27libcookielib.py", line 1301, in _cookie_attrs
self.non_word_re.search(cookie.value) and version > 0):
TypeError: expected string or buffer
cookies或headers,传的json每一个values必须为字符串 即使是布尔型也是 ‘true’