1. You are uploading a not supported file to TEX, that means that you might be using ['te','extraction'] as features for all your files. If you upload en executable for example you will receive CP_EXTRACT_RESULT_UNSUPPORTED_FILE because you cannot apply TEX to an exe.
2. When using Cloud Service you must include a cookie to the request.
Using Python requests it looks like:
results = requests.post( serviceSettings['service_primary'] + 'query', headers = headers, data = json.dumps(request), cookies=cookie, verify=False)
You obtain the cookie after each request, use it once you get it for all the request of this file.
Cookie is only needed for cloud service.