I wrote an RSS feed in Python using Django, using these instructions https://docs.djangoproject.com/en/4.1/ref/contrib/syndication/
It worked great locally. I can see my RSS feed with no issues on localhost:8000/latest/feeds
But when I deploy it the output looks like this:
PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPHJzcyB2ZXJzaW9uPSIyLjAiIHhtbG5zOmF0b209Imh0dHA6Ly93d3cudzMub3JnLzIwMDUvQXRvbSI+PGNoYW5uZWw+PHRpdGxlPkZlZGVyYWwgUmVnaXN0ZXIgZG9jdW1lbnRzIFJTUyBGZWVkPC90aXRsZT48bGluaz5odHRwczovL3I3dmYzOXY2bDQuZXhlY3V0ZS1hcGkudXMtZWFzdC0xLmFtYXpvbmF3cy5jb20vbGF0ZXN0L2ZlZWQ8L2xpbms+PGRlc2NyaXB0aW9uPkRpc3BsYXlzIHRoZSBsYXRlc3QgZmVkZXJhbCByZWdpc3RlciBkb2N1bWVudHM8L2Rlc2NyaXB0aW9uPjxhdG9tOmxpbmsgaHJlZj0iaHR0cHM6Ly9yN3ZmMzl2Nmw0LmV4ZWN1dGUtYXBpLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tL2RldjY0Ny9sYXRlc3QvZmVlZC8iIHJlbD0ic2VsZiI+PC9hdG9tOmxpbms+PGxhbmd1YWdlPmVuLXVzPC9sYW5ndWFnZT48bGFzdEJ1aWxkRGF.
..
Its base64 encoded but I do not understand why. Looking at the content type through the dev tool network tab it says that its
content-type: application/rss+xml; charset=utf-8
Some reason the apigateway on the server thinks its binary and encodes it? I tried everything I could and can not get this issue resolved.