首页 > 解决方案 > Bugzilla 使用 Rest API 创建并给出错误代码 500

问题描述

对于我收到错误代码 500 的任何操作,我在这里犯的错误是什么?API 密钥是从 bugzilla 网站生成的。
编码:

def create_bug():
body = {"product": "[BugsAgainstDistros] SUSE Linux", 
        "component": "bridge_parking", 
        "version": "SLES12_SP2", 
        "summary": "This is a test bug",
        }
response = requests.post(URL + "/rest/bug?api_key=" + API_KEY, data = body, verify = False)
return response

标签: python-3.xrestbugzillabug-reporting

解决方案


推荐阅读