python - 无法在 JIRA 和 Python 之间建立连接
问题描述
我正在尝试使用 python 连接到 Jira,但我的 python 应用程序在运行近 1-2 分钟后停止。基本上它显示:“python.exe 已停止工作”
My code is as below:
#import libraries
from jira import JIRA
from jira.exceptions import JIRAError
import sys
options = {'server': 'https://sipcg.atlassian.net'}
try:
print("start!")
jira = JIRA(options=options, auth=('xyz', 'xyz'))
except JIRAError as e:
if e.status_code == 401:
print ("Login to JIRA failed. Check your username and password")
print ("done!")
#Please help me in order to connect using jiracli
#Note: ignore the python indentation attached here
解决方案
推荐阅读
- laravel - Laravel 查询总和限制
- terminal - 使用 PageSpeed Insights API v5 在终端中使用 curl 查找服务器响应时间
- c# - 如何在 c# 中用不可能的长字符串来补救 OutOfMemory 异常?
- excel - VBA 将所有工作表导出为带有工作表名称的图像
- c++ - 代码执行无法继续,因为未找到 SDL2.dll
- c++ - DirectX11 的 .HLSL 和 .VS 和 .PS 代码有什么区别?
- authentication - gRPC 的基于令牌的身份验证是否会为每个调用添加元数据?
- redis - [ApacheBeam RedisIO]:过期时间不适用于 PFADD 写入方法
- python - if __name__ == "__main__": 和 Python 中的递归
- node.js - 用 NODE.js 在变量上多次替换字符串