def __parseRequestData(self,request):
        if request.method in (Http.POST,Http.PUT) and HttpHeader.CONTENT_TYPE in request.received_headers.keys():
            contentType = request.received_headers["content-type"]
            request.data = request.content.read()

            if contentType == MediaType.APPLICATION_JSON:
                try:
                    request.json = json.loads(request.data) if request.data else {}
                except Exception as ex:
                    raise TypeError("Unable to parse JSON body: %s" % ex)
            elif contentType in (MediaType.APPLICATION_XML,MediaType.TEXT_XML):
                try: 
                    request.xml = ElementTree.XML(request.data)
                except Exception as ex:
                    raise TypeError("Unable to parse XML body: %s" % ex)
            elif contentType == MediaType.TEXT_YAML:
                try: 
                    request.yaml = yaml.safe_load(request.data)
                except Exception as ex:
                    raise TypeError("Unable to parse YAML body: %s" % ex)
an invalid pipeline command at exec time adds the exception instance
dataset/ETHPy150Open jacek99/corepost/corepost/routing.py/RequestRouter.__parseRequestData--crossover with--dataset/ETHPy150Open andymccurdy/redis-py/tests/test_pipeline.py/TestPipeline.test_exec_error_in_response