python-3.x - 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
解决方案
推荐阅读
- c# - MySQL 更快的选择查询 | C# 更快地加载数据表
- nginx - 如何根据用户代理为两个不同 repos 的两个不同版本提供服务
- javascript - TypeError:在 Gulp 任务中使用动态导入时,dest.on 不是函数
- javascript - 实施安全逻辑以限制对数据的访问
- amazon-web-services - AWS ECS:是否可以通过 ALB 访问计划的 ecs 任务?
- c++ - 结构包装和填充究竟是如何工作的?
- javascript - 如何使 VS Code javascript 调试器不会立即关闭并正常运行?
- python - Pyomo + Xpress 中的热启动
- azure-cognitive-search - 搜索查询中的噪音/停用词会删除正确的搜索结果
- ffmpeg - 使用 ffmpeg 写入管道源麦克风时音频输出损坏