问题原因:请求内容可能不是json格式
解决方法:在请求中添加headers:
res = requests.post(url=url, json=data, headers={'content-type': 'application/json'})
问题原因:请求内容可能不是json格式
解决方法:在请求中添加headers:
res = requests.post(url=url, json=data, headers={'content-type': 'application/json'})