Skip to content

Instantly share code, notes, and snippets.

@grzn
Created April 11, 2016 13:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save grzn/70a30dde7441c06d7f5612664e83cfe0 to your computer and use it in GitHub Desktop.
Save grzn/70a30dde7441c06d7f5612664e83cfe0 to your computer and use it in GitHub Desktop.
File "/Users/guy/infinigit/.eggs/jira-1.0.3-py2.7.egg/jira/resilientsession.py", line 45, in raise_on_error
r.status_code, error, r.url, request=request, response=r, **kwargs)
Local variables:
'error': u'You need to relate to a MAN/Shipment ticket with a box serial.'
'errorMessages': [u'You need to relate to a MAN/Shipment ticket with a box serial.']
'request': None
'headers': {'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'User-Agent': 'python-requests/2.9.1', 'Connection': 'keep-alive', u'X-Atlassian-Token': u'no-check', u'Cache-Control': u'no-cache', u'Content-Type': u'application/json'}
'verb': u'POST'
'kwargs': {u'headers': {'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'User-Agent': 'python-requests/2.9.1', 'Connection': 'keep-alive', u'X-Atlassian-Token': u'no-check', u'Cache-Control': u'no-cache', u'Content-Type': u'application/json'}, 'data': '{"fields": {}, "transition": {"id": 61}, "update": {"issuelinks": [{"add": {"inwardIssue": {"key": "MAN-1334"}, "type": {"name": "Relates"}}}]}}'}
'r': <Response [400]>
'response': {u'errorMessages': [u'You need to relate to a MAN/Shipment ticket with a box serial.'], u'errors': {}}
JIRAError: JiraError HTTP 400
text: You need to relate to a MAN/Shipment ticket with a box serial.
url: https://jira.infinidat.com/rest/api/2/issue/ISS-137/transitions
response headers = {'X-AUSERNAME': 'guyr', 'X-AREQUESTID': '1014x131109x2', 'X-Content-Type-Options': 'nosniff', 'Content-Encoding': 'gzip', 'Transfer-Encoding': 'chunked', 'X-Seraph-LoginReason': 'OK', 'Vary': 'User-Agent', 'X-ASEN': 'SEN-2112672', 'X-ASESSIONID': '1xlqfcj', 'Connection': 'keep-alive', 'Cache-Control': 'no-cache, no-store, no-transform', 'Date': 'Mon, 11 Apr 2016 13:54:44 GMT', 'Server': 'nginx/1.1.19', 'Content-Type': 'application/json;charset=UTF-8'}
response text = {"errorMessages":["You need to relate to a MAN/Shipment ticket with a box serial."],"errors":{}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment