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

Proxy Error #14

Open mg1boc1 opened 4 years ago

mg1boc1 commented 4 years ago

Hello, creating a test ticket in JIRA v8.4.2 works wonderfully just because script doesn't come back. After a long, long wait I get the following messages:

WARNING:root:Got recoverable error from GET https://jira.domain.de/rest/api/2/issue/ZBX-5, will retry [1/3] in 8.50127465586s. Err: 502 Proxy Error WARNING:root:Got recoverable error from GET https://jira.domain.de/rest/api/2/issue/ZBX-5, will retry [2/3] in 25.7807044327s. Err: 502 Proxy Error WARNING:root:Got recoverable error from GET https://jira.domain.de/rest/api/2/issue/ZBX-5, will retry [3/3] in 21.7523551016s. Err: 502 Proxy Error Traceback (most recent call last): File "./jirabix.py", line 230, in main() File "./jirabix.py", line 203, in main config.jira_issue_type, priority) File "./jirabix.py", line 33, in create_issue return jira.create_issue(fields=issue_params).key File "/usr/lib/python2.7/site-packages/jira/client.py", line 1113, in create_issue return self.issue(raw_issue_json['key']) File "/usr/lib/python2.7/site-packages/jira/client.py", line 1071, in issue issue.find(id, params=params) File "/usr/lib/python2.7/site-packages/jira/resources.py", line 201, in find self._load(url, params=params) File "/usr/lib/python2.7/site-packages/jira/resources.py", line 316, in _load r = self._session.get(url, headers=headers, params=params) File "/usr/lib/python2.7/site-packages/jira/resilientsession.py", line 151, in get return self.verb('GET', url, **kwargs) File "/usr/lib/python2.7/site-packages/jira/resilientsession.py", line 147, in verb raise_on_error(response, verb=verb, kwargs) File "/usr/lib/python2.7/site-packages/jira/resilientsession.py", line 57, in raise_on_error r.status_code, error, r.url, request=request, response=r, kwargs) jira.exceptions.JIRAError: JiraError HTTP 502 url: https://jira.domain.de/rest/api/2/issue/ZBX-5 text: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">

502 Proxy Error

Proxy Error

The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request GET /rest/api/2/issue/ZBX-5.

Reason: Error reading from remote server

response headers = {'content-length': '423', 'keep-alive': 'timeout=100, max=94', 'server': 'Apache/2.4.6 () OpenSSL/1.0.2k-fips mod_auth_gssapi/1.5.1 mod_auth_kerb/5.4 PHP/7.3.10', 'connection': 'Keep-Alive', 'date': 'Mon, 18 Nov 2019 14:10:10 GMT', 'content-type': 'text/html; charset=iso-8859-1'}
response text = <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
502 Proxy Error

Proxy Error

The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request GET /rest/api/2/issue/ZBX-5.

Reason: Error reading from remote server