OSidorenkov / zabbix-jira

Python module that allows you to create tasks in Jira by the trigger from Zabbix
MIT License
40 stars 21 forks source link

Error 401 / WARNING:root:Got recoverable error from GET #11

Closed mbuyukkarakas closed 5 years ago

mbuyukkarakas commented 5 years ago

Hello all, In our environment, we use Zabbix 4.0.1 / CentOS7 We would like to reach Jira Cloud and open/close tickets. I applied the steps but I'm receiving this error.

WARNING:root:Got recoverable error from GET https://xxxxxx.atlassian.net/rest/api/2/serverInfo, will retry [1/3] in 0.96207812462s. Err: 401

Then I created a API Token by following Jira documentation. Then I changed the config.py as below.

jira_server = 'https://xxxxxxxx.atlassian.net' jira_user = 'zabbix@xxxxxxx.com:TOKEN_ID' jira_pass = 'Password'

Then I used the command to create test ticket.

python jirabix.py "zabbix@xxxxxxx.com:TOKEN_ID" "ZBX TEST" "Mesaj govdesi"

Still I'm receiving the same error message.

Could you help me please ? Best regards.

OSidorenkov commented 5 years ago

I didn't test cloud Jira, sorry 😐. Only server version.

gargmukul95 commented 5 years ago

Hey,

Try with following changes in config.py. It will work- jira_server = 'https://xxxxxxxx.atlassian.net' jira_user = 'zabbix@xxxxxxx.com' jira_pass = 'TOKEN_ID'