AnsweredAssumed Answered

Activating certain properties using PAPI failing with connection errors

Question asked by Dhilip Venkatesh Uvarajan on Jul 4, 2017
Latest reply on Aug 14, 2017 by Vreddhi Bhat

Kirsten Hunter Viktoriya Reyzelman Akshay Ranganath

 

I am getting connection broken error when I am trying to activate specific configurations through PAPI. I can still activate using PM UI. 

 

PAPI activation works for some configurations though. Below I have provided the command and post body I am using for activation. Let me know if anyone has encountered this issue?


Activation URL: /papi/v1/properties/prp_***/activations/?contractId=ctr_1-***&groupId=grp_***
Post body for activation: {"note": "Activating environment dev9", "notifyEmails": ["test@test.com"], "network": "STAGING", "propertyVersion": 60}


Traceback (most recent call last):
File "papi_automation.py", line 477, in <module>
activate('STAGING','mobile',latest_mobile_version,note,emailNotifyList)
File "papi_automation.py", line 298, in activate
response = httpCaller.postResult(activation_url,json.dumps(json.loads(post_body)))
File "/home/e1982160/OpenAPI_Python/http_calls.py", line 101, in postResult
endpoint_result = self.session.post(parse.urljoin(self.baseurl,path), data=body, headers=headers, params=parameters)
File "/usr/local/lib/python2.7/site-packages/requests-2.13.0-py2.7.egg/requests/sessions.py", line 535, in post
return self.request('POST', url, data=data, json=json, **kwargs)
File "/usr/local/lib/python2.7/site-packages/requests-2.13.0-py2.7.egg/requests/sessions.py", line 488, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python2.7/site-packages/requests-2.13.0-py2.7.egg/requests/sessions.py", line 641, in send
r.content
File "/usr/local/lib/python2.7/site-packages/requests-2.13.0-py2.7.egg/requests/models.py", line 797, in content
self._content = bytes().join(self.iter_content(CONTENT_CHUNK_SIZE)) or bytes()
File "/usr/local/lib/python2.7/site-packages/requests-2.13.0-py2.7.egg/requests/models.py", line 722, in generate
raise ChunkedEncodingError(e)
requests.exceptions.ChunkedEncodingError: ('Connection broken: error("(104, \'ECONNRESET\')",)', error("(104, 'ECONNRESET')",))

Outcomes