在线观看不卡亚洲电影_亚洲妓女99综合网_91青青青亚洲娱乐在线观看_日韩无码高清综合久久

鍍金池/ 問(wèn)答/Python/ 關(guān)于釘釘接口使用Python,Post 500報(bào)錯(cuò)

關(guān)于釘釘接口使用Python,Post 500報(bào)錯(cuò)

我用Python來(lái)處理釘釘?shù)慕涌?/p>

現(xiàn)在遇到一個(gè)問(wèn)題,get請(qǐng)求都是能用的,post數(shù)據(jù)就會(huì)報(bào)500錯(cuò)誤

我使用的接口是(獲取用戶待審批數(shù)量)
https://open-doc.dingtalk.com...

這個(gè)可以說(shuō)是沒(méi)什么有歧義的地方了,post只有一個(gè)參數(shù)

url = 'https://oapi.dingtalk.com/topapi/process/gettodonum?access_token=%s' % access_token

data = {
    "userid": "manager4012"
}

headers = {
    'Content-Type': 'application/json'
}

r = requests.post(url, data=json.dumps(data), headers=headers)
print(r.text)

報(bào)錯(cuò):

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html>
<head><title>500 Internal Server Error</title></head>
<body bgcolor="white"><script>
with(document)with(body)with(insertBefore(createElement("script"),firstChild))setAttribute("exparams","category=&userid=&aplus&yunid=&asid=AQAACADXmhdb3r3FKQAACACKRiLMGAxPpg==",id="tb-beacon-aplus",src="http://g.alicdn.com/alilog/mlog/aplus_v2.js")
</script>

<h1>500 Internal Server Error</h1>
<p>The server encountered an internal error or misconfiguration and was unable to complete your request.</body>

headers utf-8也指定了,json字符串也轉(zhuǎn)換了

想不懂為什么會(huì)報(bào)錯(cuò),完全沒(méi)有理由500錯(cuò)誤

回答
編輯回答
獨(dú)特范

釘釘服務(wù)器掛了,所以500錯(cuò)誤,過(guò)了兩天再試,恢復(fù)了。

2017年6月15日 17:33