I am trying to use REST API in python to extract tick history. I was able to follow the example provided in the download section and extract tick data successfully (in .csv.gzip format) in my development environment, which is in python3. However, when I tested exactly the same code in my production environment (python2) I got an error saying the return data is not in gzip format.
I checked the `Content-Type` field in HTTP response, I found AWS return a xml data, instead of gzip, in my production environment. Message as below:
`Content response headers (AWS server): type: application/xml`
The only difference, as far as I can tell for now, is that I am running with python2. Would this be the problem?
Thanks so much for helping